Page tree

Versions Compared

Key

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

...

As of SWAT Release 19.11.0, the repository cache service itself provides a clear cache method to clear all the screens matching the specified MATCHES pattern.

 

Info
titleClearing the whole cache through the service
DEFINE VARIABLE oCacheService AS Akioma.Swat.Repository.Cache.IRepositoryCacheService NO-UNDO.
oCacheService = {Consultingwerk/get-service.i Akioma.Swat.Repository.Cache.IRepositoryCacheService}.
IF VALID-OBJECT(oCacheService) THEN
oCacheService:ClearCache("*").

...

Info
iconfalse
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("*")).

 

...