From: Vincent Vanwaelscappel Date: Tue, 7 Mar 2023 13:59:33 +0000 (+0100) Subject: wait #5774 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=d6a0810b914eec99ab6ae0b5817b55ff30d226da;p=cubist_cms-back.git wait #5774 @0.5 --- diff --git a/src/app/Magic/Models/CubistMagicAbstractModel.php b/src/app/Magic/Models/CubistMagicAbstractModel.php index d49eca7..8ad02f2 100644 --- a/src/app/Magic/Models/CubistMagicAbstractModel.php +++ b/src/app/Magic/Models/CubistMagicAbstractModel.php @@ -1222,6 +1222,13 @@ class CubistMagicAbstractModel extends Model implements HasMedia $this->_flushCacheOnSave = true; } + public function saveQuietlyWithoutFlushingCache($options = []) + { + $this->_flushCacheOnSave = false; + $this->saveQuietly($options); + $this->_flushCacheOnSave = true; + } + public static function refreshComposedAttributes() { $all = static::all();