Caching problem - template parse errors
Posted: Thu Mar 20, 2008 12:23 pm
Hi,
For a few days i have weird problems with cached templates.
Every hour or so i get:
PHP Parse error: parse error in /srv/www/vhosts/www2/tmp/templates_c/%%7E^7E8^7E8F1701%%template%3A20.php on line 159
or
PHP Parse error: parse error, expecting `']'' in /srv/www/vhosts/www2/tmp/templates_c/%%7E^7E8^7E8F1701%%template%3A20.php
When inspecting these templates i noticed that they are cut in the middle.
For example the end of one of the templates looks like this:
caching && !$this->_cache_including): echo '{nocache:af1ef4309abe1225ee5f46a10d13d131#2}'; endif;$_cache
Clearing cache solves this problem only for a while.
I use latest version of cmsms (1.2.3). PHP Version 4.3.4, Apache/2.0.49 (Linux/SuSE), mysql 4.0.18
I have tried to change some php.ini options (memory_limit, max_execution_time) but the problem still persist.
Server is quite beefy (2GB RAM, RAID 5, intel Quad core) with minimal load so the problem must be somewhere else.
I didn't change anything in server configuration nor installed any cmsms modules recently. Problem just showed up
a few days ago without any reason. My only suspicion is that maybe site grew too big? Now i have about 260 pages.
Did anyone encounter this kind of problem? Any suggestions?
Alternatively is there a way to disable caching globally?
Any help is greatly appreciated.
For a few days i have weird problems with cached templates.
Every hour or so i get:
PHP Parse error: parse error in /srv/www/vhosts/www2/tmp/templates_c/%%7E^7E8^7E8F1701%%template%3A20.php on line 159
or
PHP Parse error: parse error, expecting `']'' in /srv/www/vhosts/www2/tmp/templates_c/%%7E^7E8^7E8F1701%%template%3A20.php
When inspecting these templates i noticed that they are cut in the middle.
For example the end of one of the templates looks like this:
caching && !$this->_cache_including): echo '{nocache:af1ef4309abe1225ee5f46a10d13d131#2}'; endif;$_cache
Clearing cache solves this problem only for a while.
I use latest version of cmsms (1.2.3). PHP Version 4.3.4, Apache/2.0.49 (Linux/SuSE), mysql 4.0.18
I have tried to change some php.ini options (memory_limit, max_execution_time) but the problem still persist.
Server is quite beefy (2GB RAM, RAID 5, intel Quad core) with minimal load so the problem must be somewhere else.
I didn't change anything in server configuration nor installed any cmsms modules recently. Problem just showed up
a few days ago without any reason. My only suspicion is that maybe site grew too big? Now i have about 260 pages.
Did anyone encounter this kind of problem? Any suggestions?
Alternatively is there a way to disable caching globally?
Any help is greatly appreciated.