Skip to content

Instantly share code, notes, and snippets.

@elisei
Forked from jeroenvermeulen/find_cacheable_false.sh
Created September 20, 2020 13:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elisei/4f783721f804bdb14ed648d0b548839e to your computer and use it in GitHub Desktop.
Save elisei/4f783721f804bdb14ed648d0b548839e to your computer and use it in GitHub Desktop.
Magento2: Find cacheable="false" in layout XML
#### 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