The class atg.repository.RepositoryImpl
provides the method invalidateCaches()
, which clears all caches from the target repository:
void invalidateCaches()
void invalidateCaches(boolean pGlobal)
If you supply an argument of true to the boolean version, the method is invoked on all cluster repositories.
Two exceptions apply:
If you call the non-boolean version on a repository where item descriptors are set to distributed hybrid caching, it triggers a cache invalidation event for each of those item descriptors, which the GSACacheServerManager distributes accordingly.
The boolean version has no affect on remote item caches that use distributed TCP caching.