Wordpress LScache Plugin: Create a purge all link in the front end
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hello, I would kindly like to ask 2 questions please. 1.I am trying to create a purge_all link for administrators in the front end of my website . I have tried something like this: In my functions.php function purge_cache() if (class_exists( LiteSpeed Purge)) do_action(litespeed_purge_all) die() Then in the front end Purge All but doesnt seem to work.Could you give me a help please? 2.I have connected my website with QUIC.cloud online services and i want to make use of CCSS , UCSS service. My Remaining Daily quota is not changing at all and i was wondering if the service is actually working and if i actually make use of CCSS , UCSS at the moment. My Report number: HHRPPFLS Thank you for your time. The page I need help with: https://www.enostalgia.gr Hi, 1) https://github.com/qtwrk/lscwp-addon this may help 2) UCSS requires CSS combine to be enabled , CCSS requires load async css to be enabled Best regards, Hello Thank you for your fast reply. 1) I have tried simply to create a link like this purge all but it didnt work. Checked also your addon but couldnt understand how to create a Purge All link just for administrators. 2)Thank you for the info.I will look into that. Best regards, huh ? why do you even want to this ? the admin bar for all admin should have purge menu already Hello @CacheCrawler Thank you for your fast reply. The admin bar is removed for some of the admins because of custom design and security reasons. That is why i would like to give them access to purge all via a link. Best regards, my code was using standard wp hook to modify the admin bar you can try comment out the user role / capability check to fit it to admin role
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference