Asp.Net OutputCache in Umbraco ApiController

For a client we have created a custom api that does some retrieving of data from a database. As the content of the database does not change often we want to cache the api method.

In Asp.Net MVC I would use the OutputCache attribute to set the cache. Can I use this attribute in Umbraco as well? The api controller implements the UmbracoApiController as a base class.


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/72510-aspnet-outputcache-in-umbraco-apicontroller