Purge Home and Categories Page Cache only on post update




Wordpress LScache Plugin: Purge Home and Categories Page Cache only on post update

Last Updated on: Wed, 15 Apr 2026 00:00:02
hello how to purge homepage and categories page cache only on posts update? i tried turning on purge on upgrade option but it is not working. i am using RevivePress Plugin to automatically update posts. everytime it updates a post I manually have to login to WordPress and clear cache. Kindly Guide me on this issue Thanks for This Amazing Plugin apologize for the inconvenience , there is some issue with schedule publish in v5.3 , we are working on it. Hello @CacheCrawler, sorry to intrude here, but Im suffering the same issue that @khzeshan9 reported. Since 5.3, automatic purge on post publishing doesnt work anymore. I have to manually purge cache after each published post, otherwise homepage (local news website) shows stale content (doesnt show last posts). Either that or by manually refreshing posts one by one. Do you have an ETA on this? Im on a LSWS Enterprise server, CentOS 7. Thanks! Could you please try edit file src/purge.cls.php by follow this ? red menas deleted or be replaced , green means newly added/replaced see if this helps Hello @CacheCrawler, Ive tried performing the suggested changes but Im a bit confused: I dont have lines 83>86 (which are flagged red/remove). Ive replaced if ( defined( LITESPEED_DID_send_headers ) || apply_filters( litespeed_delay_purge, false ) ) with if ( defined( DOING_CRON ) || defined( LITESPEED_DID_send_headers ) || apply_filters( litespeed_delay_purge, false ) ) but it throws a critical error. What am I doing wrong? please try toolbox -> beta test -> copy paste this link https://github.com/litespeedtech/lscache_wp/commit/cc231479bdf3c36712267a82898737fc2fe9a646 then upgrade use this way it will fetch the files directly , so you dont have manually edit it Thanks @CacheCrawler, I just upgraded, Ill keep you posted. Michael Hello @CacheCrawler, Ive monitored the website for the past 5 days, and Im sorry to say that something isnt still working as it should. To be more specific, Im having random autopurge related issues with programmed posts: sometimes a published post is immediately visible, other times it becomes visible only after a manual purge or an edit. This happens randomly, but it looks like it only affects mobile views. I dont have mobile cache option active, though. Im currently using an external cron service (EasyCron), which I tried to deactivate to see if it changes anything, to no avail. I have now reactivated it and disabled wp cron from wp-config. Not sure which further info may prove useful, so in case just ask me. Thanks, Michael please use toolbox -> beta test -> click dev , upgrade , and try again there were some other commits were made in past few days Ok, just did that. Should I also reboot server/lsws after that or is it useless? no , no need to reboot/restart anything



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference