Homepage not caching for anonymous visitors
-
Caching is working perfectly, except for the home page which is regenerated on every visit for anonymous users (weirdly, a cached file is picked up for logged-in users).
However, it does pick up a cached file when i access ‘https://mysite.com/index.php’, but not ‘https://mysite.com’.
Here’s some info I think might be relevant:
When I switch on debugging, this is the output:
wp_cache_maybe_dynamic: filtered $buffer through wpsc_cachedatasupercache dir: /home/sites/mysite.com/public_html/wp-content/cache/supercache/www.mysite.com/ No wp-cache file exists. Must generate a new one. In WP Cache Phase 2 Setting up WordPress actions Created output buffer Output buffer callback Anonymous user detected. Only creating Supercache file. Writing dynamic buffer to supercache file. Renamed temp supercache file to /home/sites/mysite.com/public_html/wp-content/cache/supercache/www.mysite.com/index.html Sending buffer to browser wp_cache_shutdown_callback: collecting meta data. Did not write meta file: wp-cache-17004985895c1fe36c47b5ae93418d97.meta *1* *0* *1*
I’m using permalinks and this is my htaccess:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . / [L] </IfModule> # END WordPress # Enable GZip Compression #SetOutputFilter DEFLATE AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/x-javascript application/x-httpd-php BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip Header append Vary User-Agent env=!dont-vary # WordPress SEO - XML Sitemap Rewrite Fix <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^sitemap_index\.xml$ /index.php?sitemap=1 [L] RewriteRule ^([^/]+?)-sitemap([0-9]+)?\.xml$ /index.php?sitemap=$1&sitemap_n=$2 [L] </IfModule>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Homepage not caching for anonymous visitors’ is closed to new replies.