Never get an ‘SG-F-Cache: MISS’ response header
-
Hi
I’ve been testing out the File-Based caching a lot recently and I noticed that I’d never get any SG-F-Cache: MISS’ response headers, it would be either be nothing if it was a cache miss or ‘SG-F-Cache: HIT’ for a hit.
If I comment out the ‘$should_send_miss = false;’ line of this part that starts on line 134 of sg-cachepress/core/File_Cacher/Cache.php then it works how I’d expect it to and returns ‘SG-F-Cache: MISS’ for a file-cache miss.
if ( ( @file_exists( '/etc/yum.repos.d/baseos.repo' ) && @file_exists( '/Z' ) ) && empty( $_COOKIE[ 'wordpress_logged_in_' . "COOKIEHASH" ] ) ) { // $should_send_miss = false; }
I’m hosted on SiteGround so I’m wondering is that section code designed to detect the SG hosting environment and if so why would it be set up to not return any ‘SG-F-Cache: MISS’ headers for SG hosted sites?
Thanks
- The topic ‘Never get an ‘SG-F-Cache: MISS’ response header’ is closed to new replies.