Skip to content

lhansey/pagespeed-cache-purge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

pagespeed-cache-purge

A WordPress Plugin to Flush the mod_pagespeed Cache

Initial idea of a WordPress plug-in to purge the mod_pagespeed cache.
Have not seen one out there and have run into issues with pagespeed heavily caching.

For this to work you'll need a handler set-up for pagespeed_admin otherwise you'll get 403 errors.

<Location /pagespeed_admin/> RewriteEngine Off Order allow,deny Allow from localhost Allow from 127.0.0.1 SetHandler pagespeed_admin

If you have front-end caching set-up then you'll need to configure accordingly. For example, Varnish:

In your vcl_recv sub-routine:

PASS THROUGH VARNISH IF PURGING MOD_PAGESPEED CACHE

if (req.url ~ "^/pagespeed_admin/") { return (pass);

About

A WordPress Plugin to Flush the mod_pagespeed Cache

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages