lscache_wp icon indicating copy to clipboard operation
lscache_wp copied to clipboard

Unable to clear Litespeed Cache when logged-in as Editor

Open chandra10207 opened this issue 4 years ago • 3 comments

HI,

I can't see any options to clear Cache if I was logged-in with the Editor roles and added or updated some pages.

chandra10207 avatar Feb 16 '21 01:02 chandra10207

Hi,

yes, I have a small addon for this

https://github.com/qtwrk/lscwp-addon

create a directory in /wp-content/plugins/ , name lscwp-addon , then create a php file inside of it , name lscwp-addon.php , then put this code into that file

then go to plugin page to activate it.

qtwrk avatar Feb 16 '21 01:02 qtwrk

@qtwrk,

Thankx for sharing but I can't save addons setting page If I have activated Porto Theme with Porto Theme Functionality Plugin activated.

However, It works with default twenty twenty theme.

Is there any hooks that I can use on child theme without using extra addon plugin setting, which can enable all litespeed purge options to the user with role editor.

chandra10207 avatar Feb 16 '21 08:02 chandra10207

yeah well , when I wrote that thing , I was using the WP's default theme to play with : )

the idea behind that addon was:

  1. create an admin bar item ,you can check it here

  2. then link it to a purge action , you can check it here

qtwrk avatar Feb 16 '21 14:02 qtwrk