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
|
// 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;
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user