• Resolved pepsiftd

    (@pepsiftd)


    Hello!
    Thanks again for this great plugin!
    There’s an option to Enable cache regeneration that is supposed to regenerate flushed or expired caches. It doesn’t seem to be working for me. How can I verify if it is actually working? Is there supposed to be a WP Cron job added in wp-admin action scheduler? Does this function require special server settings or something?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Richard Korthuis

    (@rockfire)

    Hi @pepsiftd

    Thank you for using our plugin!

    We schedule a WP Cron job wp_rest_cache_regenerate_cron, so that should be visible when inspecting the WP Cron using a plugin like WP Crontrol.

    You are talking about a wp-admin action scheduler: I am not sure what you mean by that, but (after googling action scheduler) if you are talking about Action Scheduler which can be shipped by some plugins, please keep in mind that this plugin works a bit different than the built-in WP Cron, so it might not show our cron job.

    Also keep in mind that our regeneration cron works in batches and starts with the caches that have been requested most often. So it could be that not all caches are regenerate after one batch, it might take more time to regenerate all expired/flushed caches.

    Thread Starter pepsiftd

    (@pepsiftd)

    Thank you @rockfire for your reply!

    Yes I think that is the one Action Scheduler I was talking about. I thought it was built in WP. Now I see it might be WooCommerce added.

    Anyway, I’ve installed WP Control and it doesn’t show the desired WP Cron job wp_rest_cache_regenerate_cron . I’ll try disabling other plugins to see if they affect this.

    Could you suggest anything I should do to debug this?

    Thread Starter pepsiftd

    (@pepsiftd)

    I’m not sure what was the problem but the cron job is there now. All I did was change from Twice Daily to Once Daily and there it was. Now when I change back to Twice Daily it is still there so I can’t reproduce the problem ¯\_(ツ)_/¯

    Well thanks for your help anyway! And thanks again for the awesome plugin!

    Plugin Author Richard Korthuis

    (@rockfire)

    @pepsiftd It seems like the scheduling of the cronjob somehow failed the first time. Every change in the cron settings makes our plugin reschedule it again. Since that seems to work fine for you, I am not sure why it failed the first time.

    Although I would have liked to know what caused the issue, I am happy the issue is solved for you!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Cache Regeneration doesn’t seem to be working’ is closed to new replies.