Keith Greer Magento Code: Magento 2 Cache Refresh Script

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.