Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Main Page
Related Pages
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
c
d
e
f
g
h
i
m
p
r
s
t
u
+
Functions
_
c
d
e
f
g
h
i
m
p
r
s
t
u
Variables
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
(
_
a
b
c
d
e
f
g
h
i
j
m
n
o
p
q
r
s
t
u
v
w
+
Functions
_
c
d
e
f
g
m
o
r
s
t
v
+
Variables
$
(
_
a
b
c
d
e
f
g
h
i
j
m
n
o
p
q
r
s
t
u
v
w
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
vendor
magento
module-page-cache
Controller
Block
Esi.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\PageCache\Controller\Block
;
8
9
class
Esi
extends
\Magento\PageCache\Controller\Block
10
{
16
public
function
execute
()
17
{
18
$response
= $this->
getResponse
();
19
$blocks = $this->
_getBlocks
();
20
$html =
''
;
21
$ttl = 0;
22
23
if
(!empty($blocks)) {
24
$blockInstance = array_shift($blocks);
25
$html = $blockInstance->toHtml();
26
$ttl = $blockInstance->getTtl();
27
if
($blockInstance instanceof \
Magento
\Framework\DataObject\IdentityInterface) {
28
$response
->setHeader(
'X-Magento-Tags'
, implode(
','
, $blockInstance->getIdentities()));
29
}
30
}
31
$this->translateInline->processResponseBody($html);
32
$response
->appendBody($html);
33
$response
->setPublicHeaders($ttl);
34
}
35
}
$response
$response
Definition:
404.php:11
Magento\PageCache\Controller\Block\Esi\execute
execute()
Definition:
Esi.php:16
Magento\Framework\App\Action\AbstractAction\getResponse
getResponse()
Definition:
AbstractAction.php:70
Magento\PageCache\Controller\Block
Definition:
Block.php:14
Magento\PageCache\Controller\Block
Definition:
Esi.php:7
Magento\PageCache\Controller\Block\_getBlocks
_getBlocks()
Definition:
Block.php:72
Magento
Magento\PageCache\Controller\Block\Esi
Definition:
Esi.php:9