private static PublicSiteCache GetCache(System.Web.Caching.Cache cache)
        {
            try
            {
                PublicSiteCache dataObject = (PublicSiteCache)cache["PublicSiteCache"];
                if (dataObject == null)
                {
                    lock (ThisLock)
                    {
                        dataObject = (PublicSiteCache)cache["PublicSiteCache"];
                        if (dataObject == null)
                        {
                            dataObject = new PublicSiteCache();
                            dataObject.PastGames = null;

                            cache["PublicSiteCache"] = dataObject;
                        }
                    }

                }
                return dataObject;
            }
            catch (Exception exception)
            {
                ErrorDatabaseManager.AddException(exception, exception.GetType());
            }
            return null;
        }
 private static PublicSiteCache UpdateCache(PublicSiteCache siteCache)
 {
     try
     {
         lock (ThisLock)
         {
             HttpContext.Current.Cache["PublicSiteCache"] = siteCache;
         }
         return siteCache;
     }
     catch (Exception exception)
     {
         ErrorDatabaseManager.AddException(exception, exception.GetType());
     }
     return null;
 }