Blog Post

Flush entire nginx mod_pagespeed cache

🗓 December 14, 2014 :: 🕑 1 min read :: 👏 0 💬 0

While removing the entire cache folder is perfectly fine, according to pagespeed docs, the safest way of doing so is to touch the cache.flush file.

sudo touch /var/ngx_pagespeed_cache/cache.flush

Depending how your nginx installation is setup, you may need to make www-data the owner for this to make the magic happen.

sudo chown www-data:www-data /var/ngx_pagespeed_cache/cache.flush
Ben Shi

While removing the entire cache folder is perfectly fine, according to pagespeed docs, the safest way of doing so is to touch the cache…

https://hbish.com/flush-entire-nginx-mod_pagespeed-cache/


Fetching Replies...