Re: [SMARTY] How complex is your caching??
| From: | atu | Date: | Tue, 26 Aug 2003 12:48:45 +0000 |
| Subject: | Re: [SMARTY] How complex is your caching?? | ||
| References: | 1 2 3 4 5 6 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-10123@lists.php.net to get a copy of this message | ||
Thanks Wom.bat,
I'm searching for an more efficient way than checking if the requested item
exists.
ex.:
index.php?id_doc=2435
One way is to check if an item id_doc=2435 exists. If there are more
variables in the url you have to do a lot of checks.
I'am searching for an other checking system. I mean more simple but
efficient.
What about to mesure the memory waste.
Or if you know how many items you have in your db you can compare this value
with the value of different cache items.
Any propositions?
Armand
----- Original Message -----
From: "Wom.bat" <wom.bat@gmx.net>
To: "atu" <atu@a-tu.net>
Cc: <smarty-general@lists.php.net>
Sent: Tuesday, August 26, 2003 9:12 AM
Subject: Re: [SMARTY] How complex is your caching??
> On Tuesday, August 26, 2003 9:06 AM +0200, atu wrote:
> > Using smartys caching in an efficient way is a realy complex job.
> > Each page has an id :
> > $_cache_id = (string) crc32( $_SERVER['REQUEST_URI'] );
>
> don't do this. I just call your page with thousands of random additional
> parameters and all of a sudden, your webserver disk is full...
>
> David
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>