Closed (fixed)
Project:
Boost
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
26 Nov 2006 at 21:38 UTC
Updated:
11 Dec 2006 at 17:01 UTC
Hi,
For some reason, after running the cache for a while, the index.html file in the cache directory turns to a 54bytes empty file and the site goes dead.
It has something to do with the boosted.txt new .htaccess file, since restoring it to the old one produces the right index.html again. I really can't say what causes this to happen.
I run the latest CVS.
Any ideas?
Comments
Comment #1
Arto commentedNo immediate ideas as to what could cause this. Could you attach the 54-byte file, please, if you still have it - if not, do you recall what the contents were?
Comment #2
fiLi commentedYeah, sure. It was easily replicated. I put back the new boosted.txt and ran a cron job and the new index.html and search.html only include (without any other text):
-
The weird thing is that other files are just fine, created and brought up as they should. Is there something special that happens to index.html and search.html on cron jobs?
Comment #3
fiLi commentedOppps... it's code so it didn't show up:
<!-- Page cached by Boost at 2006-11-26 23:48:05 -->Comment #4
Arto commentedWhile I've yet to run into this problem myself, I strongly suspect it is being caused by the page caching code running erroneously when cron is invoked. Cron runs should only expire stale files from the cache directory, never create them.
I've added a couple sanity checks, so this problem should be fixed by CVS commit #46456. Please let me know how it works for you.
On an unrelated note, I've added an SQL statement to the Boost installation hook to ensure correct interaction with other modules that make use of PHP's output buffering. You would need to run this once, manually, on your database:
UPDATE system SET weight = -90 WHERE name = 'boost';(I didn't make it an explicit upgrade hook since this is alpha and you are the only known brave user at this point. Apologies ;-))
Comment #5
(not verified) commented