Ejemplo n.º 1
0
 internal void Cache(ActionContext ac)
 {
     if (!ac.InCache && ac.Public == true && Cachie.IsCacheable(ac.Status))
     {
         Cachie ca = new Cachie(ac.Status, ac.Content, ac.MaxAge, Environment.TickCount);
         cachies.AddOrUpdate(ac.Uri, ca, (k, old) => ca.MergeWith(old));
         ac.InCache = true;
     }
 }