title: Cache dropbox items in MVC razor. How to do that?
body: <p>How can i cache my items and values for dropdown list in MVC?</p>
  
  <p>Is there a way to do so?</p>
  
  <p>I am doing that in controller.</p>
  
  <p>Sample code is.......</p>
  
  <pre><code>    public ActionResult Index()
      {
          RegionTasks regionTasks = new RegionTasks();
          ViewBag.Region = GetRegions();}
  </code></pre>
  
  <p>My controller has function as below.</p>
  
  <pre><code> [OutputCache(Duration = 10, Location = System.Web.UI.OutputCacheLocation.Server)]
      private IEnumerable&lt;SelectListItem&gt; GetRegions()
      {
          RegionTasks regionTasks = new RegionTasks();
         return regionTasks.GetRegions();
      }
  </code></pre>
  
  <p>I have tested and it not caches the item for region.</p>
  
  <p>How can i do that?</p>