Wordpress LScache Plugin: allow Editor role access
Last Updated on: Wed, 15 Apr 2026 00:00:02 Is there a way to allow the editor role access to the plugin menu so they can clear the cache manually? I cant see a setting for role access. Is it possible to add to functions.php ? You can simply purge the cache manually. It is quick and dirty, but works. 1.) Create blank php file like purge.php and put it anywhere you want on your WP installation. 2.) Copy the following code in this file. header(X-LiteSpeed-Cache-Control: no-cache) header( X-LiteSpeed-Purge: ) 3.) Request the URL to this file once in your browser. The complete cache will be purged, but you can limit it if you set the URL instead of header( X-LiteSpeed-Purge: /support/topic/allow-editor-role-access/ ) It also works with tags: header( X-LiteSpeed-Purge: tag=Wordpress ) Hi, thank you and that is a good solution but unfortunately it is something my customer will at some point forget. I basically just wanted the top admin menu icon to show in the editor role they can just click purge page on it. Your customer wont forget it if he set a bookmark in his browser, but it should be simple to add a link to the admin menu. The way how to purge the cache is always the same. Also cache plugin for WP does it on the same way like I posted above. that is true, hopefully lol. Thank you for the help. Much appreciated. Hi, you can try this addon I made https://github.com/qtwrk/lscwp-addon best regards,
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference