$this->_connect();
}
-
/* Static get */
function staticGet($k,$v=null)
{
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);
}
}
$this->decache();
return $ret;
}
+
+ static function withTag($tag)
+ {
+ $snt = new Status_network_tag();
+
+ $snt->tag = $tag;
+
+ $snt->find();
+
+ return $snt;
+ }
}