• Resolved leakplan

    (@leakplan)


    Hi

    I have a blog where articles are published on a daily basis. The articles are always created a few weeks in advance and therefore are scheduled for the specific date to be published.

    Everything worked fine for about a year but now there is an issue. At first the scheduled articles were not visible on the website. Even though the status of these articles was “published”, I had to manually click on “update” in the article for it to be visible on the blog. I tried to fix this issue with several solutions:

    – I increased the “WP_MEMORY_LIMIT” in the wp-config.php file to 500M: define('WP_MEMORY_LIMIT', '500M');

    – I added the following code to my wp-config.php file: define('DISABLE_WP_CRON', true);

    – I added the following code to the functions.php file of my theme:

    function wpdocs_run_on_publish_only( $new_status, $old_status, $post ) {
        if  ( 'publish' === $new_status && 'publish' !== $old_status )
         {
                if (defined('LSCWP_V')) {
    do_action( 'litespeed_purge_post', $post->ID );
    }
        }
    }
    add_action( 'transition_post_status', 'wpdocs_run_on_publish_only', 10, 3 );

    Now the issue seems to have changed a bit: The status of the article is now “missed schedule” and not “published” (but not visible).

    Can you help me with this issue?

    Thank you in advance.

    • This topic was modified 2 years ago by leakplan.
    • This topic was modified 2 years ago by leakplan.

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support qtwrk

    (@qtwrk)

    may I know if you are on wp 6.1 ?

    Thread Starter leakplan

    (@leakplan)

    @qtwrk Yes, I use WP 6.1.1

    Same issue here, scheduled articles are not shown in home page, category pages and all pages related but they are published. I have wrote another post in the support. hoping to be solved asap ??

    Plugin Support qtwrk

    (@qtwrk)

    Could you please try edit file src/purge.cls.php by follow this ?

    red menas deleted or be replaced , green means newly added/replaced

    Thread Starter leakplan

    (@leakplan)

    @qtwrk Unfortunately, I’m not sure which code I have to add and where and which code has to be deleted. Can you be a little more precise please?

    Plugin Support qtwrk

    (@qtwrk)

    please try toolbox -> beta test -> copy paste this link https://github.com/litespeedtech/lscache_wp/commit/cc231479bdf3c36712267a82898737fc2fe9a646

    then upgrade

    see how it goes , please note this is still a beta version of plugin

    Upgraded. Seems to be working again. Thanks.

    Thread Starter leakplan

    (@leakplan)

    @qtwrk I did both of the things and the plugin is updated but it’s still not working. What can I do?

    Plugin Support qtwrk

    (@qtwrk)

    please try the dev branch , there were some new commit merged

    toolbox -> beta test -> click “dev” and upgrade

    and also please make sure your wp-cron is triggered in timely manner , suggest to use system cron to trigger it

    Thread Starter leakplan

    (@leakplan)

    @qtwrk It is working again, thank you for your help! Also I didn’t have to do the last changes that you suggested. Thank you again!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Scheduled articles: missed schedule’ is closed to new replies.