Skip to content

Instantly share code, notes, and snippets.

@jbasoo
Created July 24, 2020 11:08
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 jbasoo/f2108452e5731c994b3c19766a2db4ca to your computer and use it in GitHub Desktop.
Save jbasoo/f2108452e5731c994b3c19766a2db4ca to your computer and use it in GitHub Desktop.
Magento 2 Widget cache refresh
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;
@jbasoo
Copy link
Author

jbasoo commented Jul 24, 2020

Usage:
m2-widget-refresh.sh 'var/cache'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment