Skip to content

Commit bab7822

Browse files
[5.x] Prevent caching during live preview (#12558)
1 parent 49188a1 commit bab7822

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Tags/Cache.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@ private function isEnabled()
6464
return false;
6565
}
6666

67-
// Only GET requests. This disables the cache during live preview.
67+
if (request()->isLivePreview()) {
68+
return false;
69+
}
70+
71+
// Only GET requests.
6872
return request()->method() === 'GET';
6973
}
7074

0 commit comments

Comments
 (0)