To Author – I see a possible bug in W3TC cron_schedule() function
-
Under function cron_schedules() of PgCache.php you have the following lines:
array_merge($schedules, array(
‘w3_pgcache_cleanup’ => array(
‘interval’ => $gc_interval,
‘display’ => sprintf(‘[W3TC] Page Cache file GC (every %d seconds)’, $gc_interval)
),
‘w3_pgcache_prime’ => array(
‘interval’ => $prime_interval,
‘display’ => sprintf(‘[W3TC] Page Cache prime (every %d seconds)’, $prime_interval)
)
));What confuses me is you are setting the recurrence field with a value that is not accepted by WP. In this case you set it as either: “w3_pgcache_cleanup” or “w3_pgcache_prime”. For the field above this is where you would put in “hourly”, “weekly”, or even other possible time terms like “ten minutes”. In your case you are using a term that is not translatable. Was this intentional? Would the scheduled task even run anymore since it is not valid? I know it will get added to the dbase but i am curious if it can even run once wordpress identifies it as not valid. Or maybe u are betting wordpress defines the field as “0” and so it only runs once???? If so then why didnt you just use the wp_schedule_single_event() wordpress function instead since it is obviously more efficient.
Thanks for the info
- The topic ‘To Author – I see a possible bug in W3TC cron_schedule() function’ is closed to new replies.