public void DisposeOf() { userProfileCache = null; }
public Core(Mysql db) { this.db = db; ItemKey.populateItemTypeCache(this); userProfileCache = new PrimitivesCache(this); itemsCache = new NumberedItemsCache(this); accessControlCache = new AccessControlCache(this); primitiveTypes = ItemKey.GetPrimitiveTypes(this); }
public Core(TPage page, ResponseFormats responseFormat, Mysql db, Template template) { HeadHooks += new HookHandler(Core_HeadHooks); PrimitiveHeadHooks += new HookHandler(Core_PrimitiveHeadHooks); FootHooks +=new HookHandler(Core_FootHooks); PageHooks += new HookHandler(Core_Hooks); PostHooks += new HookHandler(Core_PostHooks); LoadApplication += new LoadHandler(Core_LoadApplication); this.page = page; this.db = db; this.template = template; this.responseFormat = responseFormat; ItemKey.populateItemTypeCache(this); //QueryCache.populateQueryCache(); userProfileCache = new PrimitivesCache(this); itemsCache = new NumberedItemsCache(this); accessControlCache = new AccessControlCache(this); primitiveTypes = ItemKey.GetPrimitiveTypes(this); }
public Core(OPage page, ResponseFormats responseFormat, Mysql db) { LoadApplication += new LoadHandler(Core_LoadApplication); this.db = db; this.responseFormat = responseFormat; ItemKey.populateItemTypeCache(this); //QueryCache.populateQueryCache(); userProfileCache = new PrimitivesCache(this); itemsCache = new NumberedItemsCache(this); accessControlCache = new AccessControlCache(this); primitiveTypes = ItemKey.GetPrimitiveTypes(this); }