added ability to clear cache from the command line or using web hooks