diff --git a/src/CachedPersistenceModel.php b/src/CachedPersistenceModel.php index aa98acc..11d5893 100644 --- a/src/CachedPersistenceModel.php +++ b/src/CachedPersistenceModel.php @@ -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); }