Free Support Forum - aspose.com

Is it possible to disable Cache?


#1

I am running Aspose Imaging (Java version) as an AWS lambda task.In some cases a failure processing an unsupported or invalid image, causes a subsequent valid image to be processed incorrectly.

I believe that this might be caused by some leaks or by the cache … is it possible to force cache not to be used
(I don’t really need it anyway as I process a new image every time) so that every time I start processing an image, it is a brand new environment and there are no side effects from a previous failure?


#2

@russ.nichols,

I have observed the scenario shared by you and regret to share that there is no to option to clear the cache. However, you can call Dispose() method to free up the memory on your end.


#3

Hello is it possible to use a disk only cache … and also is it possible to delete the files before the execution of the program?


#4

@russ.nichols,

Can you please elaborate your requirements as I have not been able to completely understand them.