Skip to content

Commit 4f2a127

Browse files
committed
no message
1 parent 85d17bf commit 4f2a127

3 files changed

Lines changed: 23 additions & 0 deletions

File tree

Classes/Http/RequestInterceptorComponent.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,21 @@ class RequestInterceptorComponent implements ComponentInterface
1919
*/
2020
protected $cacheFrontend;
2121

22+
/**
23+
* @var boolean
24+
* @Flow\InjectConfiguration(path="enabled")
25+
*/
26+
protected $enabled;
27+
2228
/**
2329
* @inheritDoc
2430
*/
2531
public function handle(ComponentContext $componentContext)
2632
{
33+
if (!$this->enabled) {
34+
return;
35+
}
36+
2737
$request = $componentContext->getHttpRequest();
2838
if ($request->getMethod() !== 'GET') {
2939
return;

Classes/Http/RequestStorageComponent.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,21 @@ class RequestStorageComponent implements ComponentInterface
1818
*/
1919
protected $cacheFrontend;
2020

21+
/**
22+
* @var boolean
23+
* @Flow\InjectConfiguration(path="enabled")
24+
*/
25+
protected $enabled;
26+
2127
/**
2228
* @inheritDoc
2329
*/
2430
public function handle(ComponentContext $componentContext)
2531
{
32+
if (!$this->enabled) {
33+
return;
34+
}
35+
2636
$request = $componentContext->getHttpRequest();
2737
if (strtoupper($request->getMethod()) !== 'GET') {
2838
return;

Configuration/Settings.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
Flowpack:
2+
FullPageCache:
3+
enabled: true
14
Neos:
25
Flow:
36
http:

0 commit comments

Comments
 (0)