Mod_pagespeed delete cache?

Szed picture Szed · Oct 26, 2012 · Viewed 34.1k times · Source

We have a server (OVH - France), with Apache and mod_pagespeed. On this server, I have an installation of WordPress.

I made a change in a Javascript file in my theme, but pagespeed don't understand there is a new file, and keeps loading the original javascript file. js/ui.js.pagespeed********

I made the change two weeks ago, rebooted the server this morning, and it is still loading the original Javascript file.

How can I delete the pagespeed cache?

On my server, in /var/mod_pagespeedcache/http,3A/,2Fwww.myURL.fr/wp-content/themes/mytheme/js, I see the ui.js.pagespeed.jm.************.js.

Could I just delete this file?

Answer

Saurabh Chandra Patel picture Saurabh Chandra Patel · Apr 6, 2016

Google's PageSpeed docs on Legacy Flushing Of Entire Cache suggests this:

sudo touch /var/cache/mod_pagespeed/cache.flush