Does Craft have a built-in Controller/action for clearing the cache? We have auto-deployment set to a server and would be useful to set up a POST-receive hook to force the cache to clear when deployments are made.
1 Answer
You'd need to write a super-simple plugin that exposes a controller's action URL your deploy hook could hit. That action would basically just mimic what the ClearCachesTool does for clearing the various caches in Craft.
E.g. Template caches, Asset Transform Index caches, Asset Index caches, general data caches, etc.
craft->cache
)? Asset caches? All of the above?