[Plugin: WP Super Cache] Only home page Super Cached the rest always from WP Cache.
-
Hi Donncha et al.
Running WP Super Cache in PHP mode (and all recommended settings) on a Network installation, hosted on an Nginx server, I notice that only the home pages of each site in the network actually get an entry in the supercache cache directory. All others get a dir but it remains empty.
Looking at the timestamps (when visiting my site in an anonymous session browser, refreshing the pages with Ctrl+R) I see that the homepage timestamps remain constant on the homepages but anywhere else, the timestamps differ on each refresh.
I enabled Debug mode and visited such a page (/over/) where timestamps differ and get this output:
21:03:45 /over/ supercache dir: /var/www/wordpress/wp-content/cache/supercache/4visions.nl/over/ 21:03:45 /over/ No wp-cache file exists. Must generate a new one. 21:03:45 /over/ In WP Cache Phase 2 21:03:45 /over/ Setting up WordPress actions 21:03:45 /over/ Supercache caching disabled. Only using wp-cache. Non empty GET request. 21:03:45 /over/ Created output buffer 21:03:45 /over/ Output buffer callback 21:03:45 /over/ Supercache disabled: GET or feed detected or disabled by config. 21:03:45 /over/ Gzipping buffer. 21:03:45 /over/ Writing gzipped buffer to wp-cache cache file. 21:03:45 /over/ Renamed temp wp-cache file to /var/www/wordpress/wp-content/cache/wp-cache-4visions.nl442844a01da748070e6561d6d0563d8e.html 21:03:45 /over/ Writing gzip content headers. Sending buffer to browser 21:03:45 /over/ wp_cache_shutdown_callback: collecting meta data. 21:03:45 /over/ Writing meta file: /var/www/wordpress/wp-content/cache/meta/wp-cache-4visions.nl442844a01da748070e6561d6d0563d8e.meta
and then on reload the exact same output:
21:04:37 /over/ supercache dir: /var/www/wordpress/wp-content/cache/supercache/4visions.nl/over/ 21:04:37 /over/ No wp-cache file exists. Must generate a new one. 21:04:37 /over/ In WP Cache Phase 2 21:04:37 /over/ Setting up WordPress actions 21:04:37 /over/ Supercache caching disabled. Only using wp-cache. Non empty GET request. 21:04:37 /over/ Created output buffer 21:04:38 /over/ Output buffer callback 21:04:38 /over/ Supercache disabled: GET or feed detected or disabled by config. 21:04:38 /over/ Gzipping buffer. 21:04:38 /over/ Writing gzipped buffer to wp-cache cache file. 21:04:38 /over/ Renamed temp wp-cache file to /var/www/wordpress/wp-content/cache/wp-cache-4visions.nl442844a01da748070e6561d6d0563d8e.html 21:04:38 /over/ Writing gzip content headers. Sending buffer to browser 21:04:38 /over/ wp_cache_shutdown_callback: collecting meta data. 21:04:38 /over/ Writing meta file: /var/www/wordpress/wp-content/cache/meta/wp-cache-4visions.nl442844a01da748070e6561d6d0563d8e.meta
Two things I notice:
1. The same meta file gets rewritten each time (server timestamps change)
2. The log says: “Non empty GET request.” which is not true.What could be causing this?
Other log entries I notice seem to be failed (I see not even a super cache dir created) attempts to cache static files:
21:04:38 /files/2012/07/header-image.jpg supercache dir: /var/www/wordpress/wp-content/cache/supercache/4visions.nl/files/2012/07/header-image.jpg/ 21:04:38 /files/2012/07/header-image.jpg No wp-cache file exists. Must generate a new one.
Any reason why that would be necessary? Is Super Cache in PHP mode faster than ms-files.php?
Thanks for your help / clarification on this 🙂
Kind regards,
Allard
- The topic ‘[Plugin: WP Super Cache] Only home page Super Cached the rest always from WP Cache.’ is closed to new replies.