Lepidosteus ha scritto:
$cache = getMyCache();
if (($someData = $cache->load('id')) {
   echo 'X minutes left before deletion';
}

There are no rules. Depends on your data.

Say that you are a blog where U insert a post every day. The cache in this case can be 18-20h (obv. without comment from visitors).

My site, where people can insert opensource news, receive ~20 news at day. In this case the cache can be only few minutes.

And some more: you can discriminate <http://www.wordreference.com/enit/discriminate> the users: cache the content for the guest and no cache for logged in (Drupal do this).

So, Depends.

M.

--
Michel 'ZioBudda' Morelli                       [EMAIL PROTECTED]
Consulenza sistemistica in ambito OpenSource.
Sviluppo applicazioni web dinamiche (LAMP+Ajax)
Telefono: 0200619074
Telefono Cell: +39-3939890025 --  Fax: +39-0291390660

http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda http://www.ajaxblog.it MSN: [EMAIL PROTECTED] JABBER: [EMAIL PROTECTED]

Reply via email to