In order to improve the performance of the website home page, the homepage will try to call data from the cache before you need to call the database display data.
If there is no available data in the cache to open the database to remove the record set, in order to make the page display data and the database synchronize within a certain period of time.
We set the expiration time of the cache to 30 seconds.
Disclaimer: Cache Management class is from the mobile network forum 7.0
Note: It is best not to directly cache objects of objects and objects of the status, such as direct cache records or database link objects.
->
<%
SUB Showrsarr (RSARR)
'2005-1-27 by Frog Frog Prince
'Displaying the table structure of the record set generated by the table
'
Response.write "
"
IF not ISempty (RSARR) THEN
For y = 0 to Ubound (RSARR, 2)
Response.write "
"
For x = 0 to Ubound (RSARR, 1)
Response.write "
" & RSARR (X, Y) & " TD>"
NEXT
Response.write " TR>"
NEXT
Else
Response.write "
"
Response.write "
no records td>"
Response.write " TR>"
END IF
Response.write " TABLE>"
End Sub
Class CLS_CACHE
REM ================== User description ============================= ============================================================================================================================================================================================================= ==
Rem = This class module is the original Network Pioneer, Author: Lost City prodigal son. If you use this class module, please do not remove this description. This comment does not affect the speed of the execution. =
REM = Role: Cache and Cache Management Class =
REM = public variable: RELOADTIME expiration time (in minutes) The default value is 14400, =
REM = MaxCount Cache the maximum value of the object, exceeds the object that automatically deletes less use. The default is 300 =
The total name of the REM = Cachename cache group, the default is "DVBBS", if there is more than one cache group in a site, you need to change this value externally. =
REM = Property: Name Defines Cache Object Name, write only property. =
REM = Property: Value Read and write cache data. =
REM = function: objiisempty () determines whether the current cache has expired. =
REM = Method: Delcahe (MyCahename) Manually deletes a cache object, the parameter is the name of the cache object. =
REM =============================================================================================================================================================================== ============================================================================================================================================================================================================= =========