From: Vincent Vanwaelscappel Date: Thu, 16 Jun 2022 07:51:24 +0000 (+0200) Subject: wip #4210 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=a682702d83088c4fabc70ef2e237912fbce6d3e1;p=cubist_cms-back.git wip #4210 @0.25 --- diff --git a/src/app/Cache.php b/src/app/Cache.php new file mode 100644 index 0000000..a8b401d --- /dev/null +++ b/src/app/Cache.php @@ -0,0 +1,17 @@ +_handleMagicFolder([$this, '_precacheForce']); $this->_handleMagicFolder([$this, '_precache']); } /** * @param $model CubistMagicAbstractModel */ - public function _precache($model) + public function _precacheForce($model) { $model->preCache(true); } + + /** + * @param $model CubistMagicAbstractModel + */ + public function _precache($model) + { + $model->preCache(false); + } }