Cache files get overridden regardless of settings

Permalink
I always kept wondering why especially the first page load of a concrete5 site (test sites that i had installed) is so terribly slow (sometimes it takes up to 8 seconds), while subsequently called pages do load in quite a reasonable amount of time? - Now i find, that regardless of which cache setting i choose under sitewide settings, the cached files are getting overridden in any case after some time - approximately after an hour or so. One can verify that behaviour by taking a look at the date/time of the files in the cache folder.
No matter what cache settings are enabled, they don't last. Even "Enabled in all cases (Emergency Cache Mode)" doesn't make any difference. The same is true for the "Until manually cleared" setting. All cache files get overridden after some time, which means that the cache gets renewed, and the page takes a lot of time to load, as if there were no cache at all.

Has someone else experienced that behaviour? Is that a known issue? Is there a solution?
(Concrete5 4.1.1)

Michael

okapi
 
andrew replied on at Permalink Reply
andrew
Try adding this to your config/site.php

define('CACHE_LIFETIME', 43200);


That will extend the lifetime to 12 hours instead of 2, which is the default.
okapi replied on at Permalink Reply
okapi
Thanks for the hint!
When you say, 2 hours is the default lifetime of cache files, what about the "Until manually cleared" setting?
Maybe i don't understand the caching functionality... Could you please explain?

Besides, as far as i can see, this doesn't work at least for half of the files in the cache folder. Regarding performance: same behaviour as before, first loading of pages are relatively slow, further calls are resulting in quite fast loading.