How to clear cache entries by program

Object ProgID:"DAF.DBCache"

Binary file:"DAFCOM.DLL"

Methods available:

With DB administrators rights:

  • ClearAll(DBName): clear all entries in the cache.
  • ClearEntry(DBName,UserLogin): clear entry for <UserLogin> in the cache

With anonymous rights:

  • ClearEntry2(DBName,UserLogin,UserPassword): clear entry for <UserLogin> in the cache on the condition that <UserPassword> is the password for <UserLogin>

    This method is typically used in a script allowing a user to change her/his password. Indeed, once the script changed the password in the user database it is required to clear the according cache entry which still contain the old password.

For all methods, if parameter DBName is an empty string the current DB (previously loaded with LoadSiteCfg) will be used.


ASP script examples:

set DAFObj = server.createobject("DAF.DBCache")
Result = DAFObj .ClearAll("dbiis7078599")

set DAFObj = server.createobject("DAF.DBCache")
Result = DAFObj .ClearEntry("dbiis7078599","john")

set DAFObj = server.createobject("DAF.DBCache")
Result = DAFObj .ClearEntry2("dbiis7078599,"john","left")