Re: Re: Cacheing data form PHP script

From: Date: Wed, 28 Jan 2004 09:34:40 +0000
Subject: Re: Re: Cacheing data form PHP script
References: 1 2  Groups: php.general php.pear.general 
Request: Send a blank email to pear-general+get-10399@lists.php.net to get a copy of this message
On Wed, 28 Jan 2004 10:26:09 +0100 "rush" <pipa@rush.avalon.hr> wrote: > Do you see any other way to 'cache' some content? Take a look at pear::cache or pear::cache_lite and pearweb. pearweb use cache_lite to cache whole pages (when possible). To cache part of a page (or whatever). pear::cache is maybe easier to cache function calls (ie the function that generates the menu). But cache_mite is damn fast and can work with function calls too. See the support page on pearweb, there is links to tutorials. > It depends if your menu is unique per user, or it is the same for all > users. If it is unique for each user, than storing it i session makes > sense. If not than you can store it in some file or table in the db. Cache in db? sounds not that good :) > Beeing in one place would make it easier to invalidate the cache since > you would not need to poke around all sessions. That is how cache* work. pierre ps: Rush can you use quotes in reply?

« previous php.pear.general (#10399) next »