File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
app/code/Magento/PageCache Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class FormKeyProvider implements ArgumentInterface
19
19
/**
20
20
* XML PATH to enable/disable saving toolbar parameters to session
21
21
*/
22
- const XML_PATH_CATALOG_REMEMBER_PAGINATION = 'catalog/frontend/remember_pagination ' ;
22
+ private const XML_PATH_CATALOG_REMEMBER_PAGINATION = 'catalog/frontend/remember_pagination ' ;
23
23
24
24
/**
25
25
* @var Config
@@ -53,6 +53,11 @@ public function isFullPageCacheEnabled(): bool
53
53
return $ this ->config ->isEnabled ();
54
54
}
55
55
56
+ /**
57
+ * Is category pagination cache enabled
58
+ *
59
+ * @return bool
60
+ */
56
61
public function isPaginationCacheEnabled (): bool
57
62
{
58
63
return $ this ->scopeConfig ->isSetFlag (self ::XML_PATH_CATALOG_REMEMBER_PAGINATION );
Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ if ($block->getFormKeyProvider()->isFullPageCacheEnabled()): ?>
8
8
{
9
9
"*": {
10
10
"Magento_PageCache/js/form-key-provider": {
11
- "isPaginationCacheEnabled": <?= /* @noEscape */ $ block ->getFormKeyProvider ()->isPaginationCacheEnabled () ?>
11
+ "isPaginationCacheEnabled":
12
+ <?= /* @noEscape */ (int )$ block ->getFormKeyProvider ()->isPaginationCacheEnabled () ?>
12
13
}
13
14
}
14
15
}
You can’t perform that action at this time.
0 commit comments