private static List<CMSFilePath> GetTmplateStatus()
{
var _tmplts = new List<CMSFilePath>();
try { _tmplts = (List<CMSFilePath>)HttpContext.Current.Cache[keyTemplateFiles]; } catch { }
if (_tmplts == null) {
_tmplts = new List<CMSFilePath>();
}
_tmplts.RemoveAll(x => x.DateChecked < DateTime.UtcNow.AddSeconds(-30));
_tmplts.RemoveAll(x => x.DateChecked < DateTime.UtcNow.AddSeconds(-10) && x.SiteID != Guid.Empty);
return _tmplts;
}