Created
July 24, 2020 11:08
-
-
Save jbasoo/f2108452e5731c994b3c19766a2db4ca to your computer and use it in GitHub Desktop.
Magento 2 Widget cache refresh
This file contains hidden or 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
while sleep 10; | |
do for f in $(find $1 -print | grep -i global__widget_config); | |
do | |
rm $f; | |
echo $(date +'%T') Deleted $f; | |
done; | |
done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage:
m2-widget-refresh.sh 'var/cache'