Page tree

Versions Compared

Key

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

...

When screen changes are made in an environment where caching is enabled and the screen has been cached, the changes won't be visible.
For this, the clear cache functionality is available by calling the business entity method 'ClearCache' of 'Akioma.Swat.Repository.Cache.RepositoryCacheEntity'.
The method accepts a Consultingwerk.CharacterHolder parameter, which is used as a 'MATCHES' pattern to identify all the cached definitions that need to be removed.
Below is a sample on how to clear the whole cache by calling the method with the '*' pattern:

Info
iconfalse
titleSample

DEFINE VARIABLE hDataset AS HANDLE NO-UNDO.
Consultingwerk.OERA.ServiceInterface:FetchDataset(Akioma.Swat.Repository.Cache.DatabaseRepositoryCacheService:CacheBusinessEntity, DATASET-HANDLE hDataset).
Consultingwerk.OERA.ServiceInterface:InvokeMethod(Akioma.Swat.Repository.Cache.DatabaseRepositoryCacheService:CacheBusinessEntity, "ClearCache", DATASET-HANDLE hDataset, NEW Consultingwerk.CharacterHolder("*")).