Skip to content
This repository has been archived by the owner on Sep 27, 2021. It is now read-only.

Commit

Permalink
Bugfix for ORM: Invalidate cache after insertion when memache disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mathcals committed Aug 18, 2019
1 parent 46e90a1 commit 4dc8b40
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/CachedPersistenceModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,7 @@ protected function existsByPrimaryKey(array $primary_key_values) {
* @return string last insert id
*/
public function create(PersistentEntity $entity) {
if ($this->memcache_prefetch) {
$this->flushCache(true);
}
$this->flushCache($this->memcache_prefetch);
return parent::create($entity);
}

Expand Down

0 comments on commit 4dc8b40

Please sign in to comment.