Problem with scheduled posts




Wordpress LScache Plugin: Problem with scheduled posts

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hello, I am facing a problem with scheduled posts. They appear on front page only when the cache is purged. What I have already test: This solution https://wordpress.org/support/topic/not-purged-by-scheduled-posts/#post-9589122 does not work for me. I have home page ticked in Auto Purge Rules For Publish/Update. I setted cron like this post explains https://blog.litespeedtech.com/2017/05/17/wpw-using-lscache-for-wp-with-scheduled-posts/. Serve Stale option is OFF. In Purge All Hooks option, I inserted publish_future_post. It works only if the admin panel is open. If the admin is not logged in, the cache is not purged for scheduled posts. When LiteSpeed cache is disabled, all works fine. What can I do to fix this? Thank you. Hi, How was your cron is triggered ? Best regards, Hi @CacheCrawler, The WP-Cron is triggered every 1 minute. wget (...)/wp-cron.php Hi, please try add this code into your themes functions.php function wpdocs_run_on_publish_only( $new_status, $old_status, $post ) if ( publish === $new_status && publish !== $old_status ) error_log(hook test) add_action( transition_post_status, wpdocs_run_on_publish_only, 10, 3 ) and see if your php error log file logs hook test string ? Best regards, Hello, I added the code to my theme and tested. It works, but not with scheduled posts. by WP doc , it states transition_post_status is a generic action that is called every time a post changes status I assume scheduled to published should also trigger this ? The scheduled posts are being published, but not appear on homepage because of LiteSpeed Cache. I cant purge cache every time I schedule a post. How can I fix this? Hi, okay , then please try this in above code , change error_log(hook test) to if (defined(LSCWP_V)) do_action( litespeed_purge_post, $post->ID ) Best regards, Hi, Im going to mark this topic Resolved , due to lack of activity. If you still need help, please feel free to re-open it. When re-open it, please also change the topic status to not solved Best regards,



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



Reference