The CreatorCon Call for Content is officially open! Get started here.

how to clear the cache in scoped application using script?

Community Alums
Not applicable

hi Developers I am able to clear the cache via script using ga.cacheFlush(); in global scope but same cannot use in scoped Application

Can anyone suggest any alternative for clearing cache via code in scoped Application

thanks in advance

Regards 

harsha

10 REPLIES 10

Community Alums
Not applicable

Hi Harsh

 

Check out these ones:

  •  GlideCacheManager.invalidate();
  • GlideTableManager.invalidateTable('table_name');
  • GlideCacheManager.flushTable('table_name');

Note: gs.invalidateCache() // this will degrade the performance onth instance though.


You can check out this KA that might help you with your query. KB0695145 .

 

Thanks

Abhishek Pandey