Quantcast
Channel: WordPress.org Forums » [W3 Total Cache] Support
Viewing all articles
Browse latest Browse all 19295

kruglikov on "[Plugin: W3 Total Cache] FOUND A BUG in page cache preload"

$
0
0

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.

http://wordpress.org/extend/plugins/w3-total-cache/


Viewing all articles
Browse latest Browse all 19295

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>