• 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.

    https://www.ads-software.com/extend/plugins/w3-total-cache/

Viewing 1 replies (of 1 total)
  • Can you please report this bug from the support tab of the plugin so that Frederick Townes can do some investigation for your problem. To report a bug, go to the W3TC settings menu in your admin and select the Support link. Then select Submit Bug.

Viewing 1 replies (of 1 total)
  • The topic ‘FOUND A BUG in page cache preload’ is closed to new replies.