Mvc 3 disabling output cahce while debugging
===

I want to disable output caching while I am debugging. I am using cache profiles and wanted to enable it only for release mode. I have already checked [this][1] link, which doesn't seem to work. I don't want to define a debug directive for each of my control. Is there a easy way to get it working?


  [1]: http://stackoverflow.com/questions/5287005/disable-outputcaching-in-mvc3-when-running-in-debug-or-under-debugger