Caution:
This post was published in 2019 and may contain information, techniques or code examples that are no longer current. Please double-check official documentation and modern best practices before using anything from this article.
This post was published in 2019 and may contain information, techniques or code examples that are no longer current. Please double-check official documentation and modern best practices before using anything from this article.
This is a stand alone script which can be called to refresh the cache in Magento 2
The script hooks into Bootstrap to generate a unique instance without needing to hook into Magento itself. The System will loop through all the cache types specified on line 13. If you have any custom modules that also require a cache, add it into this list.