Share » Forums » Developer » ‘Cleaning the Cache’ Issue...

‘Cleaning the Cache’ Issue...

‘Cleaning the Cache’ Issue...

Friday 09 October 2009 6:51:27 pm - 2 replies

Author Message

Marko Žmak

Saturday 10 October 2009 11:02:51 am

When you clear the cache, the cache is regenerated on the first visit to the page. That why the first loading is slower, that's normal behaviour.

Why does it work so? Because regenerating the cache for ALL your pages at once would take toooo much time.

The solution for your problem is not to clear caches for production site too often, but use automatic cache clearing mechanisms in eZ. And for the development site set the DevelopmentMode setting. Explore the documentation.

You can also recompile your templates using the eztc.php script after clearng the cache, it should make the first loading a little bit faster.

For deleting the cache files faster you could manually delete the cache folder (but be careful not to delete something else). But in normal occasions you don't have the need for deleting cache files, they are deleted by eZ in the cache regeneration process.

And also, try not developing your site on a local PC; but on a faster server :)

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Piotrek Karaś

Sunday 11 October 2009 4:32:19 am

Also try to identify which layers of the system (templates, SQL queries, etc.) take up most of the time as well as whether the long generation times result from generating just the content part ($module_result.content) or the entire pagelayout. Especially for the latter one, it might be the case that you have no repeatable pagelayout parts that could have already been regenerated earlier or you simply have bad cache-block keys set for the pagelayout. You want to have as few cache-block key combinations as are required by your communication/business needs.

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu