Wordpress LScache Plugin: using LiteSpeed_Cache_API in afunction
Last Updated on: Wed, 15 Apr 2026 00:00:02 is this the right way to use LiteSpeed_Cache_API? it worked and fresh data was showing, but the page load time increased, did this code break the whole stored cache? function stat_counter($online) LiteSpeed_Cache_API::set_ttl( 15) echo online: .$online. // Calling function stat_counter($online) thanks for help Hi, Could you please explain what exactly you want to do or want to archive ? Best regards, i want to have the whole page cached, excluding only the hit counter. i used every possible method but i couldnt make it, like the example above, once i exclude any part of the page and open it, LiteSpeed plugin serve the page from fresh code resulting in delay. im about to accept this as fact now and display the counter only for admin, making it rebuild cache each hour or so? thank you. Hi, OK , then I think you are more of needing the ESI block Please refer to this wiki and this wiki2 Best regards, i try to include the counter.php file which is located in folder include
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference