]> _ Git - cubist_cms-back.git/commitdiff
wait #5774 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 7 Mar 2023 13:59:33 +0000 (14:59 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 7 Mar 2023 13:59:33 +0000 (14:59 +0100)
src/app/Magic/Models/CubistMagicAbstractModel.php

index d49eca7b8d9e362261ec892b127001df98e94705..8ad02f2de524a7209cad55c2171e2f5e7d654d6e 100644 (file)
@@ -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();