File cache interval OFF but still regenerating

[ad_1]

I noticed that when File cache cleanup interval is set to OFF (never clean), the file cache older than a week is still not considered. This is because in Cache.php there’s:

php
// Bail if the cache is stale.
if ( filemtime( $cache_file ) < ( time() - WEEK_IN_SECONDS ) ) {
	if ( $should_send_miss ) {
		header( 'SG-F-Cache: MISS' );
	}
	return false;
}

Not really expected. Cache cleanup OFF means “valid forever” and forever is forever.

  • This topic was modified 16 hours, 12 minutes ago by Mirco Babini.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer