Wednesday 07 October 2009 11:05:57 am
in your code the fecth should be inside the cache-block anyway, otherwise you will be executing useless sql queries all the time
Wow, I actually missed that and that's obviously completely against caching idea ;) Piotrek, I made some tests using the ignore_content_expiry parameter, but it doesn't solve my problem because every time I clear the cache my content changes. I think I'll have to create a javascript or php solution.
I don't quite understand what's the problem with it... But before you dive into producing some custom solutions, really study all built-in solutions (cache blocks, view cache, smart view cache clearing, persistent variables, cache block nesting) as they satisfy majority of possible scenarios and with little expertise can lead to great optimization. Of course, dynamic injection of HTML based on JavaScript is a great way, but only if all other things are well optimized.
--
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
|