Ben Shi

Blog Post

Flush entire nginx mod_pagespeed cache

Posted Under: notes
December 14, 2014

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

I'm Ben Shi, a Sydney-based Full Stack Software Engineer specialising in micro-services and API development. This is a playground for me to document my learnings and experiences as a technologist.

You can find out a little bit more about me over here.

Contact: [email | twitter| linkedin]