• Hi – thanks for your great plugin

    I’m getting a warning in WP Crontrol about this cron job

    swcfpc_purge_cache_cron_interval

    10 (10 seconds)
    This interval is less than the WP_CRON_LOCK_TIMEOUT constant which is set to 60 seconds. Events that use it may not run on time.
    WP Cloudflare Super Page Cache – Purge Cache Cron Interval

    I have no idea where that setting might be – and for that matter what does the purge cache cron doing?

    thanks

Viewing 1 replies (of 1 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    There are no settings for that. The lower cron interval is there to ensure that the cache gets cleared quickly as 60 seconds is a lot. If you have server-level cron job setup and the default WP cron disabled, (More info: https://kinsta.com/knowledgebase/disable-wp-cron/) then you won’t have any issues if that server level cron is set to a lower time.

    Alternatively if your site has a good traffic then also you won’t face any problem as people are always visiting your site to initiate the corn job.

    Now coming to increasing that time, you can define the constant SWCFPC_PURGE_CACHE_CRON_INTERVAL in your wp-config.php file to set it to 60 or whatever you like.

    This is already mentioned in the plugin settings > FAQ tab > Advanced section: https://i.imgur.com/ewgTIL2.jpeg

    and for that matter what does the purge cache cron doing?

    – what is is doing is that lets say you have the option cache only HTML pages option enabled inside the plugin settings > cache tab. Now when you click on purge cache, lets say 250 URLs has been already cached. Now we can’t just send all those 250 URLs to the CF via API due to performance and API limits. So, it split those URLs into chunks of lets say 30 URLs and then send each chunk via separate API request. Hope that helps you understand.

Viewing 1 replies (of 1 total)
  • The topic ‘Purge Cache Cron Interval’ is closed to new replies.