diff --git a/Aplia/Content/ContentType.php b/Aplia/Content/ContentType.php index 73eb172..faa65b2 100644 --- a/Aplia/Content/ContentType.php +++ b/Aplia/Content/ContentType.php @@ -574,7 +574,7 @@ public function remove($allowNoExists=false) * * @return self */ - public function update() + public function update($options = array()) { $contentClass = $this->getContentClass(); $isDirty = false; @@ -682,7 +682,10 @@ public function update() $handler->setTimestamp( 'sort-key-cache', $time ); $handler->store(); - \eZContentCacheManager::clearAllContentCache(); + $clearCache = Arr::get($options, 'clearCache', true); + if ($clearCache) { + \eZContentCacheManager::clearAllContentCache(); + } return $this; }