Example #1
0
        public static XmlClip GetClip(string xmlPath, string groupID, string clipID)
        {
            string cacheKey = string.Format("___CLIPCACHE{0}{1}{2}", xmlPath, groupID, clipID);

            if (HttpContext.Current.Cache[cacheKey] != null)
            {
                return((XmlClip)HttpContext.Current.Cache[cacheKey]);
            }

            XmlClip xclip = new XmlClip(xmlPath, groupID, clipID);

            xclip.Load();

            if (!xclip.CacheDisabled)
            {
                System.Web.Caching.CacheDependency Dependencies;
                Dependencies = new System.Web.Caching.CacheDependency(xclip.XmlPath);
                HttpContext.Current.Cache.Insert(cacheKey, xclip, Dependencies);
            }

            return(xclip);
        }
Example #2
0
 public void Add(XmlClip xClip)
 {
 }