hide errors when deleting cached status_network_tag keys

This commit is contained in:
Evan Prodromou 2011-06-10 18:57:17 -04:00
parent 08cf6827a9
commit 3dbfa97979
2 changed files with 5 additions and 3 deletions

View File

@ -58,7 +58,7 @@ class Status_network extends Safe_DataObject
// XXX: made public so Status_network_tag can eff with it // XXX: made public so Status_network_tag can eff with it
public static $cache = null; public static $cache = null;
static $cacheInitialized = false; public static $cacheInitialized = false;
static $base = null; static $base = null;
static $wildcard = null; static $wildcard = null;

View File

@ -111,8 +111,10 @@ class Status_network_tag extends Safe_DataObject
function decache() function decache()
{ {
$key = 'status_network_tags:' . $this->site_id; $key = 'status_network_tags:' . $this->site_id;
if (Status_network::$cache) { if (Status_network::$cache || Status_network::$cacheInitialized) {
Status_network::$cache->delete($key); // FIXME: this was causing errors, so I'm hiding them.
// I'm a big chicken and lazy.
@Status_network::$cache->delete($key);
} }
} }