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
|