forked from GNUsocial/gnu-social
encache on insert instead of decaching
This commit is contained in:
parent
0f6ccee6d3
commit
35d4587172
@ -142,8 +142,8 @@ class Memcached_DataObject extends DB_DataObject
|
|||||||
|
|
||||||
function insert()
|
function insert()
|
||||||
{
|
{
|
||||||
$this->decache(); // in case of cached negative lookups
|
|
||||||
$result = parent::insert();
|
$result = parent::insert();
|
||||||
|
$this->encache(); // in case of cached negative lookups
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user