Wordpress LScache Plugin: Exclude widget from cache
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hi. I need to exclude one widget / plugin from cache because it simply stops displaying when LS Cache is enabled. Ive tried creating ESI block but it doesnt help either. What else can I try to exclude that widget or whole plugin from cache? Thanks, Kacper Hi, the cache works on page basis , which means , besides the ESI , there is no way to control individual part of page to no-cache maybe we can try to check and figure why it doesnt display instead please provide the report number, you can get it in toolbox -> report -> click send to LiteSpeed and please do me some screenshot as how it doesnt display. Best regards, Hi @CacheCrawler Thank you for your reply! Report number: ROOGRSWB Screenshot: https://i.imgur.com/wzG4lB0.jpg ? Popularne means Popular and the message below says there are currently no popular posts . The screenshot shows the widget without ESI enabled ? when I enable it, even the message dissapears. Of course when I disable LiteSpeed cache, the widget starts working just fine. I thought it might be a JS issue so I disabled minify/combine options in LSC but still no luck. Have a good day! Hi, Could you please try reset to default setting and see how it goes ? Best regards, Hi. I found out that object cache is the issue. When I disable this option, popular posts work again. However, I really need to have it enabled since I use rRedis. Any ideas how can I make it work with object cache? Hi, there is a Global Groups in object cache setting , try remove them one by one , to locate which one is the group of that widget , then you keep that removed , and keep rest in the list Best regards, I just tried that, but it didnt help. I even removed all at once ? no change at all. Any other ideas? Hi, then please try search through the files where that widget comes from , looking for word like wp_cache_add and wp_cache_set and see if they are assigned with group name you will looking for something like this wp_cache_add( $key, $data, $group, $expire ) first 2 value is always set , 3rd one is group name , but it is optional , so widget author may not assign it Best regards,
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference