forked from GNUsocial/gnu-social
only encache new objects when insert was successful
This commit is contained in:
parent
35d4587172
commit
e50410683f
@ -143,7 +143,9 @@ class Memcached_DataObject extends DB_DataObject
|
|||||||
function insert()
|
function insert()
|
||||||
{
|
{
|
||||||
$result = parent::insert();
|
$result = parent::insert();
|
||||||
$this->encache(); // in case of cached negative lookups
|
if ($result) {
|
||||||
|
$this->encache(); // in case of cached negative lookups
|
||||||
|
}
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user