Wordpress LScache Plugin: More hooks on purge
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hi, thank you for this awesome plugin. Im adding some options to purge the CDN directly from the admin menu https://share.getcloudapp.com/wbu70Q5J but currently theres only one hook when purge is done litespeed_purged_all I would like to use this hook litespeed_purged_all to automatically purge the CDN files (CSS and JS) but theres no way as many CDN providers requires the url of each file to purge it. The hook is triggered after everything is removed so im not able to get the CSS and JS files. It could be useful to have a hook before the purge starts and also when the user only purges the CSS and JS cache as theres no way for now to know if the user purge a specific cache. Thanks. This is done in https://github.com/litespeedtech/lscache_wp/commit/8d23d94d09c14a4c21f3e07eb38d572a29303330. It will be in next release.
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference