Re: [SMARTY] cache and inserts
| From: | Nino Katic | Date: | Fri, 06 Jun 2003 11:39:18 +0000 |
| Subject: | Re: [SMARTY] cache and inserts | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9656@lists.php.net to get a copy of this message | ||
On Thu, 5 Jun 2003, Paul Lockaby wrote:
> Nino Katic wrote:
> > Hi,
> >
> > Is it possible to turn off cacheing but to be able to use inserts in tpls?
> > This is because i have many inserts and the speed gained with cache is
> > questionable. So, is this possible?
> >
> > Nino
> >
> >
>
> Yes, it is possible. However, inserts are horribly slow. If there is a
> better way to do what you're doing without using inserts (perhaps
> includes instead?) then you might want to try that.
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