ASPSMARTCACHE : DOCUMENTATION
SmartCache Object
Last modified: June 4,1999 
© 1999 Advantys. All rights reserved.

SmartCache Object

The SmartCache object can be created directly from an ASP program.

Syntax
Set myCache = Server.CreateObject("aspSmartCache.SmartCache")
myCache.Methods

Methods

ManageCache Manages the cache with a date
ManageCacheFile Manages the cache with a file name

ManageCache Method

The ManageCache method optimizes the cache utilization.

Syntax
.ManageCache(oDate, [tzOffset], [bRespectBrowserSettings])

Parameters
oDate       Date object
               Date of last modification.

tzOffset    Integer, default value=server local time zone offset
(optional)  Time Zone offset of the server local zone in minutes.

bRespectBrowserSettings   Boolean, default value=False
(optional)   By default, ManageCache checks for newer versions of
                stored pages every visite to the page.
                If bRespectBrowserSettings is true, ManageCache uses the
                original settings of the browser.

Warnings
The method must be placed before the first HTML tag.

Example

<%
oDateLastModified = CDate(oFile.DateLastModified)
Set MyCache = Server.CreateObject("aspSmartCache.SmartCache")
MyCache.ManageCache oDateLastModified
%>

ManageCacheFile Method

The ManageCacheFile method optimizes the cache utilization.

Syntax
.ManageCacheFile([strFileName], [tzOffset], [bRespectBrowserSettings])

Parameters
strFileName  String
(optional)  Name of the file
               By default, ManageCacheFile uses the script name.

tzOffset    Integer, default value=server local time zone offset
(optional)  Time Zone offset of the server local zone in minutes.

bRespectBrowserSettings   Boolean, default value=False
(optional)   By default, ManageCacheFile checks for newer versions of
                stored pages every visite to the page.
                If bRespectBrowserSettings is true, ManageCacheFile uses
                the original settings of the browser.

Warnings
The method must be placed before the first HTML tag.

Example

<%
Set MyCache = Server.CreateObject("aspSmartCache.SmartCache")
MyCache.ManageCacheFile
         - or -
MyCache.ManageCacheFile "/scripts/aspSmart/Test.asp"
         - or -
MyCache.ManageCacheFile "d:\...\scripts\aspSmart\Test.asp"
%>

© 1999 Advantys. All rights reserved.