Skip to content

Commit d2d74ed

Browse files
arkadiychSergey Nosov
authored andcommitted
MAGETWO-50279: When Page Cache is enabled, then CAPTCHA is cached on pages
- captcha blocks marked as non-cachable
1 parent d6a56f0 commit d2d74ed

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

app/code/Magento/Captcha/view/adminhtml/layout/adminhtml_auth_forgotpassword.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
99
<body>
1010
<referenceContainer name="form.additional.info">
11-
<block class="Magento\Captcha\Block\Captcha" name="captcha">
11+
<block class="Magento\Captcha\Block\Captcha" name="captcha" cacheable="false">
1212
<action method="setFormId">
1313
<argument name="formId" xsi:type="string">backend_forgotpassword</argument>
1414
</action>

app/code/Magento/Captcha/view/adminhtml/layout/adminhtml_auth_login.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
99
<body>
1010
<referenceContainer name="form.additional.info">
11-
<block class="Magento\Captcha\Block\Captcha" name="captcha">
11+
<block class="Magento\Captcha\Block\Captcha" name="captcha" cacheable="false">
1212
<action method="setFormId">
1313
<argument name="formId" xsi:type="string">backend_login</argument>
1414
</action>

app/code/Magento/Captcha/view/frontend/layout/contact_index_index.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
99
<body>
1010
<referenceContainer name="form.additional.info">
11-
<block class="Magento\Captcha\Block\Captcha" name="captcha" after="-">
11+
<block class="Magento\Captcha\Block\Captcha" name="captcha" after="-" cacheable="false">
1212
<action method="setFormId">
1313
<argument name="formId" xsi:type="string">contact_us</argument>
1414
</action>

app/code/Magento/Captcha/view/frontend/layout/customer_account_create.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
99
<body>
1010
<referenceContainer name="form.additional.info">
11-
<block class="Magento\Captcha\Block\Captcha" name="captcha" after="-">
11+
<block class="Magento\Captcha\Block\Captcha" name="captcha" after="-" cacheable="false">
1212
<action method="setFormId">
1313
<argument name="formId" xsi:type="string">user_create</argument>
1414
</action>

app/code/Magento/Captcha/view/frontend/layout/customer_account_forgotpassword.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
99
<body>
1010
<referenceContainer name="form.additional.info">
11-
<block class="Magento\Captcha\Block\Captcha" name="captcha" after="-">
11+
<block class="Magento\Captcha\Block\Captcha" name="captcha" after="-" cacheable="false">
1212
<action method="setFormId">
1313
<argument name="formId" xsi:type="string">user_forgotpassword</argument>
1414
</action>

app/code/Magento/Captcha/view/frontend/layout/customer_account_login.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
99
<body>
1010
<referenceContainer name="form.additional.info">
11-
<block class="Magento\Captcha\Block\Captcha" name="captcha" after="-">
11+
<block class="Magento\Captcha\Block\Captcha" name="captcha" after="-" cacheable="false">
1212
<action method="setFormId">
1313
<argument name="formId" xsi:type="string">user_login</argument>
1414
</action>

0 commit comments

Comments
 (0)