Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Starting with SWAT 22.06, the following changes are available:

  • menustructure caching in memory was improved

  • repository data requests are stored in memory cache

In memory caching can be set from the Application Settings: memoryCache.menus(yes/no, default no). and from the memoryCache.repository(yes/no, default no)


MemoryCacheManager

Manager for all in memory cache entries. Can be used to disable or enable the MemoryCache globally for both menustructures and repository objects.

For all MemoryCache stores CLAPI methods have been implemented to clear all cache, enable or disable caching.

Code Block
languagejs
akioma.MemoryCacheManager.deleteById('objectdesignerw');
akioma.MemoryCacheManager.enable();
akioma.MemoryCacheManager.disable();
akioma.MemoryCacheManager.clear();


MenuStructureCache

Caching manager class useful for handling MenuStructure objects caching. Can be used as the Manager class but will only delete, enable, disable or clear the MenuStructure entries from the memory cache.

CLAPI methods have been implemented to clear all cache, enable or disable caching:

Code Block
languagejs
akioma.MenuStructureCache.deleteById('objectdesignerw');
akioma.MenuStructureCache.enable();
akioma.MenuStructureCache.disable();
akioma.MenuStructureCache.clear();
akioma.MenuStructureCache.isCacheEnabled();

RepositoryCache

Caching manager class useful for handling Repository objects caching. Can be used as the Manager class but will only delete, enable, disable or clear the Repository Object entries from the memory cache.

CLAPI methods have been implemented to clear all cache, enable or disable caching:

Code Block
languagejs
akioma.RepositoryCache.deleteById('objectdesignerw');
akioma.RepositoryCache.enable();
akioma.RepositoryCache.disable();
akioma.RepositoryCache.clear();
akioma.RepositoryCache.isCacheEnabled();