Re: caching question

From: Date: Mon, 14 May 2001 13:22:46 +0000
Subject: Re: caching question
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-758@lists.php.net to get a copy of this message
Neat concept, but not nearly as easy as it sounds. We did some discussion on the {include cache=no} idea, and decided it wasn't too practical to try to do. You have to figure in nested includes for one, among some other technical issues. Just use {insert ...} for non-cached data. We might be able to put a flag on insert tags to allow them to be selectively cached, as suggested in a previous e-mail. Oguz Altun wrote: > > ----- Original Message ----- > From: "Monte Ohrt" <monte@ispi.net> > To: "Andreas Kaiser" <info@vocote.de>; "Smaty ML" > <smarty@lists.ispi.net> > Sent: Friday, May 11, 2001 7:58 PM > Subject: [smarty] Re: caching question > > > this brings an interesting idea about. > > > > {include file="blah.tpl" cache=no} > > Outstanding idea. How about generalizing it a bit to let user chose caching > or not caching any block of code he wants. > > Eg st like: > > $smarty->caching = true; > > $smarty->no_caching { > > query the db and show results... > > } > > the rest can be cached... > > Also this can be done in template files: > Eg: > > {caching off} > some dynamic content... > {/caching} > > --- > You are currently subscribed to smarty as: monte@ispi.net > To unsubscribe send a blank email to $subst('Email.Unsub') > Visit Smarty's homepage at > http://www.phpinsider.com/php/code/Smarty/ -- Monte Ohrt <monte@ispi.net> http://www.ispi.net/

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