Neil Mukerji
Forum Replies Created
-
Hi there,
The WP front page is https://www.signup-onlinemarketing.co.uk/knowledge/
It’s a WP ‘Page’ that uses a template (PHP file) that contains all of the content.
Thanks for all the hard work on Supercache though!
Neil.
I think I have a very similar situation here. When I run the tester I get this in the debug logs:
14:19:18 /knowledge/wp-admin/options-general.php?page=wpsupercache&tab=tester Cookie detected: wordpress_logged_in_3cf3a5930aead04e1cd6db13648626b9
14:19:18 /knowledge/wp-admin/options-general.php?page=wpsupercache&tab=tester In WP Cache Phase 2
14:19:18 /knowledge/wp-admin/options-general.php?page=wpsupercache&tab=tester Setting up WordPress actions
14:19:18 /knowledge/wp-admin/options-general.php?page=wpsupercache&tab=tester Not caching wp-admin requests.When I hit the front page from another browser (not logged in) I get:
14:20:32 /knowledge/ supercache dir: [xxx]
14:20:32 /knowledge/ No wp-cache file exists. Must generate a new one.
14:20:33 /knowledge/ In WP Cache Phase 2
14:20:33 /knowledge/ Setting up WordPress actions
14:20:33 /knowledge/ Created output buffer
14:20:33 /knowledge/ supercache dir: [xxx]
14:20:33 /knowledge/ Output buffer callback
14:20:33 /knowledge/ supercache dir: [xxx]
14:20:33 /knowledge/ Anonymous user detected. Only creating Supercache file.
14:20:33 /knowledge/ supercache dir:[xxx]
14:20:33 /knowledge/ Gzipping buffer.
14:20:33 /knowledge/ Writing non-gzipped buffer to supercache file.
14:20:33 /knowledge/ Writing gzipped buffer to supercache file.
14:20:33 /knowledge/ Warning! Not writing another page to front page cache.It looks to me as though all pages other than the front page are being cached okay. If I look in the supercache directory for all subdirectories I see files that make sense, such as index.html and index.html.gz, but in the root of the supercache directory I see a whole bunch of .tmp and .tmp.gz files.
This is all a LAMP environment by the way. So it looks like Apache can write the temporary files, but needs to rename them and that fails. There’s nothing in the audit or message logs relating to this.
I’ve now traced the problem to line 538 of wp-cache-phase2.php – it appears that neither is_front_page() nor is_home() return true even when the home page is being called. My home page is not a list of posts, and it is not at the root of my virtualhost. It is however set correctly in WordPress address and Site address on the settings page.
I’ve commented out the check on line 536 and the resulting actions on lines 537-539, and amended the elseif on 540 to an if, and it all seems well. I appreciate this may open us up to the bug discussed above – I’ll report back if it does!
I hope this level of detail helps.