Don't get crud for Notice::repeatStream()
This commit is contained in:
parent
9ab0a6f760
commit
e48ca92914
|
@ -1861,7 +1861,11 @@ class Notice extends Memcached_DataObject
|
||||||
} else {
|
} else {
|
||||||
$idstr = $cache->get(Cache::key('notice:repeats:'.$this->id));
|
$idstr = $cache->get(Cache::key('notice:repeats:'.$this->id));
|
||||||
if ($idstr !== false) {
|
if ($idstr !== false) {
|
||||||
|
if (empty($idstr)) {
|
||||||
|
$ids = array();
|
||||||
|
} else {
|
||||||
$ids = explode(',', $idstr);
|
$ids = explode(',', $idstr);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$ids = $this->_repeatStreamDirect(100);
|
$ids = $this->_repeatStreamDirect(100);
|
||||||
$cache->set(Cache::key('notice:repeats:'.$this->id), implode(',', $ids));
|
$cache->set(Cache::key('notice:repeats:'.$this->id), implode(',', $ids));
|
||||||
|
@ -1890,18 +1894,7 @@ class Notice extends Memcached_DataObject
|
||||||
$notice->limit(0, $limit);
|
$notice->limit(0, $limit);
|
||||||
}
|
}
|
||||||
|
|
||||||
$ids = array();
|
return $notice->fetchAll('id');
|
||||||
|
|
||||||
if ($notice->find()) {
|
|
||||||
while ($notice->fetch()) {
|
|
||||||
$ids[] = $notice->id;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$notice->free();
|
|
||||||
$notice = NULL;
|
|
||||||
|
|
||||||
return $ids;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function locationOptions($lat, $lon, $location_id, $location_ns, $profile = null)
|
function locationOptions($lat, $lon, $location_id, $location_ns, $profile = null)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user