Skip memcache retrieval if the expiry time is defined as 0 (after all, we clearly don't want stale data)

develop
Sven Slootweg 12 years ago
parent f54722d1a7
commit 75a5f0b7e7

@ -65,7 +65,7 @@ class CachedPDO extends PDO
$return_object = new stdClass;
if($result = mc_get($cache_hash))
if($expiry != 0 && $result = mc_get($cache_hash))
{
$return_object->source = "memcache";
$return_object->data = $result;

Loading…
Cancel
Save