mySobek Home   |   Help
Skip Navigation Links.
MISSING BANNER

Global Values

Values stored Globally

Values which are used frequently are considered to be moved into the global.asax class. Most of these objects originate from a database call and are relatively small. Keeping these in the global.asax ensures that only one instance of these classes are created and allows them to be relatively available for every request.

The only object in the global values which uses a large amount of memory is the list of all items in the library ( Item_Lookup_Object ) but this class is used very often for rendering search and browse results, as well as validating a particular item exists in the library. When the number of items in the library grows, this object's placement in the global values will be reconsidered.

The table below lists all the objects defined in the global.asax class.

GLOBAL VALUES
INSTANCE NAME OBJECT
Checked_List
Codes
Collection_Aliases Dictionary<string,string>
Icon_List Dictionary<string,>
Item_List
Last_Refresh System.DateTime
Skins
Stats_Date_Range
Thematic_Headings List<>
Translation
Version string

Global Value Creation

These global values are created when the web application is loaded into memory by the . In addition, these values are verified each time a request is submitted against any of the ASPX pages. A system administrator can force all of these values to be reloaded by resetting the cache from the System Admin menu.

The list of items is refreshed every fifteen minutes from the database. Whenever the list is successfully pulled from the database and reloaded, the Last_Refresh value is set again as well.