cache the scope for null profile
This commit is contained in:
parent
91e5a72609
commit
7c62835900
@ -2305,7 +2305,11 @@ class Notice extends Memcached_DataObject
|
||||
*/
|
||||
function inScope($profile)
|
||||
{
|
||||
$keypart = sprintf('notice:in-scope-for:%d:%d', $this->id, $profile->id);
|
||||
if (is_null($profile)) {
|
||||
$keypart = sprintf('notice:in-scope-for:%d:null', $this->id);
|
||||
} else {
|
||||
$keypart = sprintf('notice:in-scope-for:%d:%d', $this->id, $profile->id);
|
||||
}
|
||||
|
||||
$result = self::cacheGet($keypart);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user