{"id":34,"date":"2015-10-04T14:03:56","date_gmt":"2015-10-04T19:03:56","guid":{"rendered":"https:\/\/azoreancoder.pw\/blog\/?p=34"},"modified":"2015-12-25T02:41:08","modified_gmt":"2015-12-25T07:41:08","slug":"how-to-fix-w3tc-not-re-minifying-your-css-after-a-change-only-applicable-if-you-use-memcache","status":"publish","type":"post","link":"https:\/\/azoreancoder.pw\/blog\/archives\/how-to-fix-w3tc-not-re-minifying-your-css-after-a-change-only-applicable-if-you-use-memcache","title":{"rendered":"How to fix W3TC not re-minifying your CSS after a change (Only applicable if you use memcache!)"},"content":{"rendered":"<p>I&#8217;ve been minifying my blog and one thing i ran into was the fact that W3TC kept using the same minified CSS file (Even after installing YUI compressor, changing compressor, changing my style.css, etc..)<\/p>\n<p>Then it hit me, every single time I &#8216;clear my cache&#8217; it didn&#8217;t clear\u00a0anything. So the culprit is probably memcache.<\/p>\n<p>TL;dr :\u00a0here&#8217;s how to flush your memcache!<\/p>\n<ol>\n<li>Log into your machine through SSH<\/li>\n<li>While inside, telnet the memcache daemon<br \/>\n<pre id=\"W3TC_RESET_POST_MSG2\"><code class=\"language-markup\">tiago@alfred:~# telnet 127.0.0.1 11211<\/code><\/pre><\/li>\n<li>Once you are in, you should see:<br \/>\n<pre id=\"W3TC_RESET_POST_MSG1\"><code class=\"language-markup\">Trying 127.0.0.1...\r\nConnected to 127.0.0.1.\r\nEscape character is &#039;^]&#039;.<\/code><\/pre><\/li>\n<li>Now, just type <strong>flush_all <\/strong>as a command and press the <strong>ENTER<\/strong> key<\/li>\n<li>You should see\u00a0the response <strong>OK<\/strong><\/li>\n<li>Once that is done, just type <strong>quit<\/strong>\u00a0to quit! and you should se<strong>e\u00a0Connection closed by foreign host.<\/strong><\/li>\n<\/ol>\n<p>And you&#8217;re set! The next website load should take a while as W3TC is re-minifying everything now!<\/p>\n<p>Happy crunching!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been minifying my blog and one thing i ran into was the fact that W3TC kept using the same minified CSS file (Even after installing YUI compressor, changing compressor, changing my style.css, etc..) Then it hit me, every single time I &#8216;clear my cache&#8217; it didn&#8217;t clear\u00a0anything. So the culprit is probably memcache. TL;dr&#8230; <\/p>\n<div class=\"read-more navbutton\"><a href=\"https:\/\/azoreancoder.pw\/blog\/archives\/how-to-fix-w3tc-not-re-minifying-your-css-after-a-change-only-applicable-if-you-use-memcache\">Read More<i class=\"fa fa-angle-double-right\"><\/i><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[13,11,9,8,14,15,12],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to fix W3TC not re-minifying your CSS after a change (Only applicable if you use memcache!) - Azoreancoder<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/azoreancoder.pw\/blog\/archives\/how-to-fix-w3tc-not-re-minifying-your-css-after-a-change-only-applicable-if-you-use-memcache\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to fix W3TC not re-minifying your CSS after a change (Only applicable if you use memcache!) - Azoreancoder\" \/>\n<meta property=\"og:description\" content=\"I&#8217;ve been minifying my blog and one thing i ran into was the fact that W3TC kept using the same minified CSS file (Even after installing YUI compressor, changing compressor, changing my style.css, etc..) Then it hit me, every single time I &#8216;clear my cache&#8217; it didn&#8217;t clear\u00a0anything. So the culprit is probably memcache. TL;dr... Read More\" \/>\n<meta property=\"og:url\" content=\"https:\/\/azoreancoder.pw\/blog\/archives\/how-to-fix-w3tc-not-re-minifying-your-css-after-a-change-only-applicable-if-you-use-memcache\" \/>\n<meta property=\"og:site_name\" content=\"Azoreancoder\" \/>\n<meta property=\"article:published_time\" content=\"2015-10-04T19:03:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2015-12-25T07:41:08+00:00\" \/>\n<meta name=\"author\" content=\"madcat\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@madcat1990\" \/>\n<meta name=\"twitter:site\" content=\"@madcat1990\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"madcat\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/azoreancoder.pw\/blog\/archives\/how-to-fix-w3tc-not-re-minifying-your-css-after-a-change-only-applicable-if-you-use-memcache\",\"url\":\"https:\/\/azoreancoder.pw\/blog\/archives\/how-to-fix-w3tc-not-re-minifying-your-css-after-a-change-only-applicable-if-you-use-memcache\",\"name\":\"How to fix W3TC not re-minifying your CSS after a change (Only applicable if you use memcache!) - Azoreancoder\",\"isPartOf\":{\"@id\":\"https:\/\/azoreancoder.pw\/blog\/#website\"},\"datePublished\":\"2015-10-04T19:03:56+00:00\",\"dateModified\":\"2015-12-25T07:41:08+00:00\",\"author\":{\"@id\":\"https:\/\/azoreancoder.pw\/blog\/#\/schema\/person\/963b49b188d6021584d791ad298f41d1\"},\"breadcrumb\":{\"@id\":\"https:\/\/azoreancoder.pw\/blog\/archives\/how-to-fix-w3tc-not-re-minifying-your-css-after-a-change-only-applicable-if-you-use-memcache#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/azoreancoder.pw\/blog\/archives\/how-to-fix-w3tc-not-re-minifying-your-css-after-a-change-only-applicable-if-you-use-memcache\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/azoreancoder.pw\/blog\/archives\/how-to-fix-w3tc-not-re-minifying-your-css-after-a-change-only-applicable-if-you-use-memcache#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/azoreancoder.pw\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to fix W3TC not re-minifying your CSS after a change (Only applicable if you use memcache!)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/azoreancoder.pw\/blog\/#website\",\"url\":\"https:\/\/azoreancoder.pw\/blog\/\",\"name\":\"Azoreancoder\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/azoreancoder.pw\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/azoreancoder.pw\/blog\/#\/schema\/person\/963b49b188d6021584d791ad298f41d1\",\"name\":\"madcat\",\"sameAs\":[\"https:\/\/instagram.com\/madcat1990\",\"https:\/\/x.com\/madcat1990\"],\"url\":\"https:\/\/azoreancoder.pw\/blog\/archives\/author\/madcat\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to fix W3TC not re-minifying your CSS after a change (Only applicable if you use memcache!) - Azoreancoder","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/azoreancoder.pw\/blog\/archives\/how-to-fix-w3tc-not-re-minifying-your-css-after-a-change-only-applicable-if-you-use-memcache","og_locale":"en_US","og_type":"article","og_title":"How to fix W3TC not re-minifying your CSS after a change (Only applicable if you use memcache!) - Azoreancoder","og_description":"I&#8217;ve been minifying my blog and one thing i ran into was the fact that W3TC kept using the same minified CSS file (Even after installing YUI compressor, changing compressor, changing my style.css, etc..) Then it hit me, every single time I &#8216;clear my cache&#8217; it didn&#8217;t clear\u00a0anything. So the culprit is probably memcache. TL;dr... Read More","og_url":"https:\/\/azoreancoder.pw\/blog\/archives\/how-to-fix-w3tc-not-re-minifying-your-css-after-a-change-only-applicable-if-you-use-memcache","og_site_name":"Azoreancoder","article_published_time":"2015-10-04T19:03:56+00:00","article_modified_time":"2015-12-25T07:41:08+00:00","author":"madcat","twitter_card":"summary_large_image","twitter_creator":"@madcat1990","twitter_site":"@madcat1990","twitter_misc":{"Written by":"madcat","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/azoreancoder.pw\/blog\/archives\/how-to-fix-w3tc-not-re-minifying-your-css-after-a-change-only-applicable-if-you-use-memcache","url":"https:\/\/azoreancoder.pw\/blog\/archives\/how-to-fix-w3tc-not-re-minifying-your-css-after-a-change-only-applicable-if-you-use-memcache","name":"How to fix W3TC not re-minifying your CSS after a change (Only applicable if you use memcache!) - Azoreancoder","isPartOf":{"@id":"https:\/\/azoreancoder.pw\/blog\/#website"},"datePublished":"2015-10-04T19:03:56+00:00","dateModified":"2015-12-25T07:41:08+00:00","author":{"@id":"https:\/\/azoreancoder.pw\/blog\/#\/schema\/person\/963b49b188d6021584d791ad298f41d1"},"breadcrumb":{"@id":"https:\/\/azoreancoder.pw\/blog\/archives\/how-to-fix-w3tc-not-re-minifying-your-css-after-a-change-only-applicable-if-you-use-memcache#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/azoreancoder.pw\/blog\/archives\/how-to-fix-w3tc-not-re-minifying-your-css-after-a-change-only-applicable-if-you-use-memcache"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/azoreancoder.pw\/blog\/archives\/how-to-fix-w3tc-not-re-minifying-your-css-after-a-change-only-applicable-if-you-use-memcache#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/azoreancoder.pw\/blog"},{"@type":"ListItem","position":2,"name":"How to fix W3TC not re-minifying your CSS after a change (Only applicable if you use memcache!)"}]},{"@type":"WebSite","@id":"https:\/\/azoreancoder.pw\/blog\/#website","url":"https:\/\/azoreancoder.pw\/blog\/","name":"Azoreancoder","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/azoreancoder.pw\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/azoreancoder.pw\/blog\/#\/schema\/person\/963b49b188d6021584d791ad298f41d1","name":"madcat","sameAs":["https:\/\/instagram.com\/madcat1990","https:\/\/x.com\/madcat1990"],"url":"https:\/\/azoreancoder.pw\/blog\/archives\/author\/madcat"}]}},"_links":{"self":[{"href":"https:\/\/azoreancoder.pw\/blog\/wp-json\/wp\/v2\/posts\/34"}],"collection":[{"href":"https:\/\/azoreancoder.pw\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/azoreancoder.pw\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/azoreancoder.pw\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/azoreancoder.pw\/blog\/wp-json\/wp\/v2\/comments?post=34"}],"version-history":[{"count":7,"href":"https:\/\/azoreancoder.pw\/blog\/wp-json\/wp\/v2\/posts\/34\/revisions"}],"predecessor-version":[{"id":89,"href":"https:\/\/azoreancoder.pw\/blog\/wp-json\/wp\/v2\/posts\/34\/revisions\/89"}],"wp:attachment":[{"href":"https:\/\/azoreancoder.pw\/blog\/wp-json\/wp\/v2\/media?parent=34"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/azoreancoder.pw\/blog\/wp-json\/wp\/v2\/categories?post=34"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/azoreancoder.pw\/blog\/wp-json\/wp\/v2\/tags?post=34"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}