Re: best way to cache configs
| From: | Ryan King | Date: | Sun, 03 Apr 2005 19:11:13 +0000 |
| Subject: | Re: best way to cache configs | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-18506@lists.php.net to get a copy of this message | ||
On Apr 2, 2005, at 11:56 PM, Dan Rossi wrote:
On 03/04/2005, at 5:48 PM, Dan Rossi wrote:yes.Ok you mean this ? http://www.danga.com/memcached/
The thing with sessions is that you may not achieve much. Depending on which session container you use, you'll likely still have to read it from disk. And, you'll still have overhead from unserializing the object, which may be as much overhead as creating the object. Only benchmarking will tell the difference. -ryan -- http://theryanking.com/I am so into a caching mechanism, but non of the gumby admins i have to work with are confident or capable of doing it :| I may come back to this at a later stage, store the config in a cache variable and also some databased data.what I have also generally done in the past , especially for caching class objects is serialising into a session, but i guess there are better ways :)