Skip to main content
Version: 1.21.3

SimpleCache

The class provides a method that resets the cache.

SimpleCache


Use the constructor to create a SimpleCache object.

Example:

SimpleCache()
let cacheSystem = new SimpleCache();

resetCacheSystemUrl()


Use this method to reset the current timestamp of the cache specified in the URL Caches (sys_cache_system_url) table. As a result:

  1. All the records in the table are updated.
  2. The Actual for, datetime field value is changed to the date and time when the method was called.

Return:

TypeDescription
BooleanThis method returns true if the cache was reset successfully; otherwise, it returns false.

Example:

resetCacheSystemUrl()
let cacheSystem = new SimpleCache();
cacheSystem.resetCacheSystemUrl();