Question

I have google's pagespeed installed with nginx server installed following here. I need to flush/delete the previous cached content but could not find a solution. On pagespeed site its mentioned to use this command:

touch /var/ngx_pagespeed_cache/cache.flush

But I have no success with it. Thanks for any help.

Was it helpful?

Solution 2

Is /var/ngx_pagespeed_cache your caching folder? If so, this should work. As Dayo noted, we do not delete the files, just invalidate them.

However you can also just rm -r the caching folder and then reload Nginx (to clear the in-memory cache). If you are using memcached, you'd have to clear that too.

OTHER TIPS

try this click here for more

sudo touch /var/cache/mod_pagespeed/cache.flush
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top