cakephp/cakephp — pull request #1414 by TeckniX (2013-07-11 19:13:39+00:00)
Title: Added debug check and cacheClear when looking at views

CacheDispatcher should clear the cache when the site is set in debug and also prevent the view from loading the cache.
Failing to do so, results in odd behaviors when trying to debug a view, yet with caching enabled for production.