hide errors when deleting cached status_network_tag keys
This commit is contained in:
parent
08cf6827a9
commit
3dbfa97979
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user