Last active
August 3, 2023 08:42
-
-
Save jeroenvermeulen/4a074c4de680eba5c5569f5472b02ec7 to your computer and use it in GitHub Desktop.
Magento2: Find cacheable="false" in layout XML
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### by MageHost.pro #### | |
# execute in Magento 2 root: | |
find vendor app -regextype 'egrep' -type f -regex '.*/layout/.*\.xml' -not -regex '.*(vendor/magento/|/checkout_|/catalogsearch_result_|/dotmailer).*' | xargs grep --color -n -e 'cacheable="false"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment