You should use:

if (false === ($data = $cache->load($cacheId))) {
  // cache miss
}

best,

Andries Seutens
http://andries.systray.be



reto schreef:
Hi everyone,

I just realized, that with the code-snippet from the
Zend_Cache-documentation an empty cache-object behaves like a
cache-miss.

 if (!($data = $cache->load($cacheId))) {
  // cache miss...

So if the loaded cache is just empty (in a file-cache it looks like: "
 -1571559392a:0:{}") it will be generated again..
Is this how it should work?
Or should the if-comparison be different?

Sincerely,
 Reto


Gecontroleerd op virussen door de JOJO Secure Gateway.

Reply via email to