We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b31ab7c commit a2f42abCopy full SHA for a2f42ab
1 file changed
src/Lib/JsonFrontend.php
@@ -49,7 +49,8 @@ public function display($page)
49
// GET Requests on pages that are of type 'cacheable' can be cached.
50
$isCacheable =
51
(
52
- $_SERVER['REQUEST_METHOD'] == 'GET'
+ \Extension_API_Framework::isCacheEnabled()
53
+ && $_SERVER['REQUEST_METHOD'] == 'GET'
54
&& is_array($resolvedPage)
55
&& in_array('cacheable', $resolvedPage['type'])
56
);
0 commit comments