FOUND A BUG in page cache preload
-
In file w3-total-cache/lib/W3/PgCacheAdminEnvironment.php near line 107
when plugin schedules event for page cache preload:wp_schedule_event(current_time('timestamp'), 'w3_pgcache_prime', 'w3_pgcache_prime');
the current_time function is used to set up time event.
But if we look into wp-cron.php, it uses microtime(true) function for time.( see $local_time variable in wp-cron.php ).microtime(true) returns time in GMT.
current_time(‘timestamp’) is WP function and returns time in GMT + gmt_offset.
If gmt_offset is not 0 then we have problems with ‘w3_pgcache_prime’ event.I had these problems on my sites.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘FOUND A BUG in page cache preload’ is closed to new replies.