Re: [SMARTY] How complex is your caching??

From: Date: Tue, 26 Aug 2003 07:06:40 +0000
Subject: Re: [SMARTY] How complex is your caching??
References: 1 2 3 4  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10121@lists.php.net to get a copy of this message
Hi, I use smarty in a cms http://www.open-publisher.net. The content (articles, categories, keywords,.....) is managed in templates through plugins so that you can handle the template design as your needs. Using smartys caching in an efficient way is a realy complex job. Each page has an id : $_cache_id = (string) crc32( $_SERVER['REQUEST_URI'] ); All pages are cached until an item has changed (category title, article title,......). In this case the whole cache is deleted. This is a compromise. I havent found the right and easy way to handle caching without cutting templates in subtemplates. This is also possible but complex to handle. You must have an in deep knowledg of the mutual influence of the db items. This would be a difficult job for template designers, which items should be handled in subtemplates and which not? Armand ----- Original Message ----- From: "Gerard Samuel" <gsam@trini0.org> To: <rj@last.fm> Cc: <smarty-general@lists.php.net> Sent: Tuesday, August 26, 2003 4:23 AM Subject: Re: [SMARTY] How complex is your caching?? > Looks interesting, but not exactly what I was looking for. > My main problem is figuring out a way to handle the different scenarios > that is possible to use for cache grouping. > So I guess Ill let it soak in the brain for another year or so... > > Richard Jones wrote: > > >I use smarty in combination with memcached > >( http://www.danga.com/memcached/ ) > > > >it's a fantastic combo. i can chuck around big objects but not worry too much > >about efficiency as the objects are mostly cached in ram. > > > >RJ > > > > > >On Monday 25 August 2003 2:32 pm, Gerard Samuel wrote: > > > > > >>Not the code in Smarty itself, but in particular, how complex of a system, > >>do people use smarty's caching for their sites? > >>For my code, I have to take into account, > >>languages, themes(css), users, directory paths, plus stuff like article > >>ids etc. > >>Im just looking to see how others are using smarty in a "complex" setup. > >>Thanks > >> > >> > > > > > > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > > ----- Original Message ----- From: "mose" <mose@feu.org> To: <smarty-general@lists.php.net> Sent: Tuesday, August 26, 2003 4:51 AM Subject: Re: [SMARTY] How complex is your caching?? > le Mon, Aug 25, 2003 at 10:23:14PM -0400 par Gerard Samuel : > > Looks interesting, but not exactly what I was looking for. > > My main problem is figuring out a way to handle the different scenarios > > that is possible to use for cache grouping. > > So I guess Ill let it soak in the brain for another year or so... > > - human brain is only efficient when clustered :) > > We in tikiwiki (http://tikiwiki.org) use specific compile_id for > language management, and we also have a styles management. We underuse > smarty ability to manage very complex cache, as compile_id and > cache_id can be tricked as you wish, when you want. We also have a > specific compilation for modules. Code source is LGPL, help yourself. > > > hope that helps, > mose > > > > > > Richard Jones wrote: > > > > >I use smarty in combination with memcached > > >( http://www.danga.com/memcached/ ) > > > > > >it's a fantastic combo. i can chuck around big objects but not worry too > > >much about efficiency as the objects are mostly cached in ram. > > > > > >RJ > > > > > > > > >On Monday 25 August 2003 2:32 pm, Gerard Samuel wrote: > > > > > > > > >>Not the code in Smarty itself, but in particular, how complex of a system, > > >>do people use smarty's caching for their sites? > > >>For my code, I have to take into account, > > >>languages, themes(css), users, directory paths, plus stuff like article > > >>ids etc. > > >>Im just looking to see how others are using smarty in a "complex" setup. > > >>Thanks > > >> > > >> > > > > > > > > > > > > > -- > > Smarty General Mailing List (http://smarty.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > >

« previous php.smarty.general (#10121) next »