I'm building a web app which is selecting a lot of information from the database, and returns it. I'd like to store the returned value from the method which returns the tables from the database for 15 minutes, but it doesn't work using a OutputCache
Filter:
[OutputCache(duration=900)]
private DataTable[] GetInfoTables() {...}
the method does work, just find, but when I add anything to one of the tables (after first logging into site and view them) it refreshes immediately and I'd like it to cache for 15 minutes.
I cannot cache the public ActionResult Index()
because it checks for Session
s value.
Thanks