Can someone please explain how module caching works since what I observe doesn't quite make sense.
I have a DNN site on 5.6.3. in the host the caching is set to Memory, and Heavy.
I have a News Articles Latest module on a page. This work as expected when the the caching is set to File, 0 seconds. However, I have customised the News Articles Latest module and it takes more time to process now. So the page load is about 7 seconds. This is long and I wanted to use caching to reduce it.
So I set the caching to File, 1200 seconds. Now the page loads in about a second, so all is good.
Now suppose a new article is submitted to the main News Article module. This can happen every few days based on predefined schedule. The News Article Latest module should show it as well. When the cache setting is not set, the module updates and shows the new changes. But when the cache is set to File, 1200, the module doesn't update even after several days and this is what I don't understand about caching.
Is it not supposed to update after the 1200 seconds has passed? Doesn't it mean the cache expires after 1200 seconds after which a new call will be made which would update the cache?
Strangely enough, if I am logged in as admin, the module shows the updated version even with the cache setting of File, 1200.
Very puzzled. Please advise.
Henry