On Wed, 28 Jan 2004 10:26:09 +0100
"rush" <[EMAIL PROTECTED]> 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?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to