Intermittent blank page/cache issue
Posted: Tue Apr 20, 2010 12:46 am
Hi,
I'm having an intermittent problem with my client's site - every now and then it refuses to load content and just shows a blank page. Refreshing over and over again does not seem to fix it. The admin section will work fine, and the way my client gets it working again is to go into the main template and save it again without changing anything.
I have only had one chance to get access to it whilst it's been down, I immediately went in and turned on debug mode in config.php and the site loaded straight away (with all the debug info down the bottom). When I switched debug mode off again, it went back to normal, loading content etc perfectly. I suspect it's got something to do with the cache, but I'm having a hard time trying to nail it down as it's very intermittent - it has been working fine for the last few months, before that it was going down several times a day.
The entire website was moved from a different server a few months ago and the problem stopped then. This is the first time it has happened on the new server, but I doubt it's a server/memory issue. The website gets a few hundred hits per day max (averages 500MB bandwidth a month total), it's not a media heavy website at all and its on a reasonable server. The peaks in traffic do not correspond with the outages. Plus - the admin sections works perfectly and going in and re-saving the template gets it running straight away.
It's a pretty frustrating issue - I have looked at all the PHP error logs, CMSMS admin logs, traffic logs, MySQL etc etc.. everything seems to be fine. My suspicion is that it is cache and/or permissions related - for example CMSMS is saving a empty page as the cache and serving that as the main page (I haven't had a chance to try pages other than the main one when it's been down).
Then when my client goes in and re-saves the template, or I turn on debug mode - the cache is manually cleared by that action and the page is re-created.
Does this sound reasonable? If so how would I go about fixing this? The permissions for tmp directory are currently set to 755. Within that folder:
templates_c, cache & configs folders - permissions are 775
a bunch (5 or so) files called sess_3d495e7f34f95 etc are all 0 bytes with permissions set to 600.
As for versions - its CMS Made Simple 1.6.6, PHP 5.2.12, MySQL 5.0.90 on Apache/Linux.
Thanks.
Any help would be greatly appreciated.
I'm having an intermittent problem with my client's site - every now and then it refuses to load content and just shows a blank page. Refreshing over and over again does not seem to fix it. The admin section will work fine, and the way my client gets it working again is to go into the main template and save it again without changing anything.
I have only had one chance to get access to it whilst it's been down, I immediately went in and turned on debug mode in config.php and the site loaded straight away (with all the debug info down the bottom). When I switched debug mode off again, it went back to normal, loading content etc perfectly. I suspect it's got something to do with the cache, but I'm having a hard time trying to nail it down as it's very intermittent - it has been working fine for the last few months, before that it was going down several times a day.
The entire website was moved from a different server a few months ago and the problem stopped then. This is the first time it has happened on the new server, but I doubt it's a server/memory issue. The website gets a few hundred hits per day max (averages 500MB bandwidth a month total), it's not a media heavy website at all and its on a reasonable server. The peaks in traffic do not correspond with the outages. Plus - the admin sections works perfectly and going in and re-saving the template gets it running straight away.
It's a pretty frustrating issue - I have looked at all the PHP error logs, CMSMS admin logs, traffic logs, MySQL etc etc.. everything seems to be fine. My suspicion is that it is cache and/or permissions related - for example CMSMS is saving a empty page as the cache and serving that as the main page (I haven't had a chance to try pages other than the main one when it's been down).
Then when my client goes in and re-saves the template, or I turn on debug mode - the cache is manually cleared by that action and the page is re-created.
Does this sound reasonable? If so how would I go about fixing this? The permissions for tmp directory are currently set to 755. Within that folder:
templates_c, cache & configs folders - permissions are 775
a bunch (5 or so) files called sess_3d495e7f34f95 etc are all 0 bytes with permissions set to 600.
As for versions - its CMS Made Simple 1.6.6, PHP 5.2.12, MySQL 5.0.90 on Apache/Linux.
Thanks.
Any help would be greatly appreciated.