Re: [SMARTY] cache and inserts
| From: | Nino Katic | Date: | Fri, 06 Jun 2003 13:18:00 +0000 |
| Subject: | Re: [SMARTY] cache and inserts | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9659@lists.php.net to get a copy of this message | ||
On Fri, 6 Jun 2003, Paul Lockaby wrote:
> >
> > I'm developing site that's heavily based on getting data from MySql db.
> > That data can be changed anytime by the users, so i wanted to use cacheing
> > for some small static parts and inserts for all content that i'm getting
> > from db and that's almost everything. I didn't know that insert is so slow
> > and didn't know how to do it some other way. So if i try to include that
> > insert functions i would put cacheing to false, include that code and then
> > again turn on cacheing or? Thx.
> >
> > Nino
>
> Well, the cool thing about inserts is that if you set caching to 2, you
> can have the page be cached different from each insert and each inert
> from the other inserts. So you might look into that. Feel free to ask
> for an example, it's just too early for me to make one under my own
> motivation right now :)
If i set caching to 2 i can setup cache lifetime of each tpl on my own
values, but i still get stucked with inserts and their slownes, or u
suggest to cache inserts? I'm totaly confused now. I'll try to do some
benchmarks when i use cache + inserts and when i don't use cache nor
inserts. Btw. how to measure that time?
Nino