Skip to content

Commit ae0d332

Browse files
committed
AC-8477: /page_cache/block/esi handles param enhancement
1 parent 1727b68 commit ae0d332

File tree

1 file changed

+4
-4
lines changed
  • app/code/Magento/PageCache/Controller

1 file changed

+4
-4
lines changed

app/code/Magento/PageCache/Controller/Block.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ abstract class Block extends \Magento\Framework\App\Action\Action
6262
/**
6363
* Handle size system name
6464
*/
65-
public const XML_HANDLES_SIZE = 'system/full_page_cache/handles_size';
65+
private const XML_HANDLES_SIZE = 'system/full_page_cache/handles_size';
6666

6767
/**
6868
* @param \Magento\Framework\App\Action\Context $context
@@ -111,9 +111,9 @@ protected function _getBlocks()
111111
$blocks = $this->jsonSerializer->unserialize($blocks);
112112
$handles = $this->base64jsonSerializer->unserialize($handles);
113113

114-
$handles_size = (int) $this->config->getValue(self::XML_HANDLES_SIZE);
115-
$handles = ($handles_size && count($handles) > $handles_size)
116-
? array_splice($handles, 0, $handles_size) : $handles;
114+
$handleSize = (int) $this->config->getValue(self::XML_HANDLES_SIZE);
115+
$handles = ($handleSize && count($handles) > $handleSize)
116+
? array_splice($handles, 0, $handleSize) : $handles;
117117

118118
if (!$this->validateHandleParam($handles)) {
119119
return [];

0 commit comments

Comments
 (0)