Skip to content

pixelkey/Pixel-Key-Purge-Varnish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pixel Key Purge Varnish

This is a WordPress plugin to purge or ban the varnish cache on post save/update with cURL method.

You can also add the action for post status transition to purge varnish cache. However, this may be overkill in some most cases. Hence it has been disabled unless you need it.

Set cURL options and header according to your server requirements. There are two methods supplied: BAN and PURGE By default it is set to BAN.

It is recommended to place this plugin file in the mu-plugins folder, where it will be automatically included by WordPress as a "Must Use" Plugin. Aternatively, create a folder with the plugin name, place the file in the folder and include it the plugins folder.

For testing, uncomment debugging sections. A curl_status_log file will be created in current plugins folder - mu-plugins folder.

About

Purge Vanish Cache on post save/update with cURL method.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages