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.