Commit 3dbfa979 authored by Evan Prodromou's avatar Evan Prodromou

hide errors when deleting cached status_network_tag keys

parent 08cf6827
......@@ -58,7 +58,7 @@ class Status_network extends Safe_DataObject
// XXX: made public so Status_network_tag can eff with it
public static $cache = null;
static $cacheInitialized = false;
public static $cacheInitialized = false;
static $base = null;
static $wildcard = null;
......
......@@ -111,8 +111,10 @@ class Status_network_tag extends Safe_DataObject
function decache()
{
$key = 'status_network_tags:' . $this->site_id;
if (Status_network::$cache) {
Status_network::$cache->delete($key);
if (Status_network::$cache || Status_network::$cacheInitialized) {
// FIXME: this was causing errors, so I'm hiding them.
// I'm a big chicken and lazy.
@Status_network::$cache->delete($key);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment