We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bc3da9 commit d167965Copy full SHA for d167965
src/FlushQueryCacheObserver.php
@@ -71,12 +71,12 @@ public function restored(Model $model)
71
*/
72
protected function invalidateCache(Model $model): void
73
{
74
+ $class = get_class($model);
75
+
76
if (! $model->getCacheTagsToInvalidateOnUpdate()) {
77
throw new Exception('Automatic invalidation for '.$class.' works only if at least one tag to be invalidated is specified.');
78
}
79
- $class = get_class($model);
-
80
$class::flushQueryCache(
81
$model->getCacheTagsToInvalidateOnUpdate()
82
);
0 commit comments