Hi,
First of all, I don't really know how Zend_Cache works internally, so I'm making one (possibly incorrect) assumption, that expired items are not removed from the cache until they are requested via $cache->load();

Now, is the following possible, and if so how?

   * You have a cache set up where stored items expire after 24 hours
   * There is an item in the cache which was added 25 hours ago and
     originally came from a remote source
   * You make a request for the item, it has expired, so load() returns
     nothing
   * You make a request to the remote system for the latest data
   * If the request is successful the new data is added to the cache in
     the usual way
   * If the request is unsuccessful the old data that has now expired
     is "reset" to be valid for another 24 hours (or possibly less)

I want to do this in order to ensure that there is never no data available.
Is is possible? Thanks,
--
Jack

Reply via email to