We want to improve the performance of our WCF service by introducing output caching.
For each different URL (varyByParam="none" varyByCustom="RawUrl"
) we want to cache the result as long as the database table FooBar has not changed.
However, we want to check such a change only once per day (6:20 AM). If the table changes during the day, we do not want the cache to be cleared until the next day 6:20 AM.
We know that this can result in unconsistent outputs, however, in our application scenario this is not a problem.
How to tell the outputCache to check for changes only at 6:20 AM each day?