This content has been marked as final.
Show 2 replies
-
1. Re: After Deleting Cache Files Remain on Disk
pranjal.jaju Nov 11, 2014 1:34 AM (in response to pranjal.jaju)please this is a bottleneck for system is there any solution
-
2. Re: After Deleting Cache Files Remain on Disk
rvansa Nov 11, 2014 3:10 AM (in response to pranjal.jaju)When you call cacheManager.removeCache(...), the cache is stopped, and it's cache store is cleared and stopped along with it. After clear() operation the SingleFileStore truncates the file to 4 bytes (file magic number), but it does not delete it. With stop(), the file is not deleted.
The workaround could be to register a listener @CacheStopped, and guess the single file store file location (from cache name, probably) in order to delete that file.