This is a useful bit of SQL which was supplied to us by DNN Support recently.
Please note: this is applicable only to DNN Evoq and not the Community/Platform editions as they do not have Page Caching enabled. Please see our psPageCache module to apply caching to these versions.
We wanted to be able to set all pages to use the 'MemoryOutputCachingProvider' and also set the Cache Duration as well to save us having to go through all the site pages - which there were a lot of!
First you can update all pages to use the 'MemoryOutputCachingProvider':
Once you have executed this, you can then set the cache duration:
The above sets the duration to 1200 seconds (20 minutes) but you can change this to whatever value you want.
Once run, clear the cache and recycle the app pool. Each page will now have the Output Cache Provider
and the CacheDuration