How do I avoid the Image Cache?

I'm having a problem. I can save a picture of my preference in the folder that I want, but I want that picture to be replaced after some events, and when you reload it, with hte same name in the same folder, it will be a refreshed version, diferent.

Well, the images are saved and then replaced, but in the game, when it have to show the image, it shows the previous version of it, even if it don't exist anymore. (but in the game folder it was replaced with a new version, as I can see because I'm with the folder oppened in the win explorer)

Trying to make it more understandable:

I have the "Image_01.png"

I loaded this to the menu. It shows the image, I'm happy!

But now, without restarting the game (cause restart makes the problem "vanish"), I replace "Image_01.png" with anoter version on the same folder with the same name. (the file is still "folder/Image_01.png")

When I open the menu I want the game to reload the image and show me the new version, but the game shows me the previous version of the picture.

What do I understood? The game just do not load the new version beacuse it's using its cached temporary files version, and is not loading it from the folder as I want it to do.

I researched for answers, but I can't understand how to use these functions in the rpg maker:

http://stackoverflow.com/questions/1077041/refresh-image-with-a-new-one-at-the-same-url

http://stackoverflow.com/questions/17479748/refresh-image-in-jsp-avoiding-cache

http://websistent.com/javascript-reload-image/

http://stackoverflow.com/questions/684917/can-i-delete-file-from-temporary-internet-files-in-javascript

Someone here can understand what to do? I need to know, it would help me a lot.
What exactly are you trying to achieve? Every image loaded through the ImageManager is stored in a cache, so it doesn't have to be reloaded everytime it's requested.
Yes, I know what the cache does. I don't know how do I do to avoid it.

I just want to be capable to reload a image when I need to. ^^

The people in the links I posted wants the same thing, but for websites. D:
I don't know how to apply the codes in the rpg maker.
 

Make it possible to avoid this little problem with the ImageManager cache that do not refresh the image contents after I change it in the folder. Understand? o.o
If you really want to clear an item from the cache, you'll need to do something like this:

delete ImageManager._cache["Path/To/Image:hue"]This will remove the cache entry of the bitmap, though I'm not entirely sure if that will have the garbage collector properly dispose of the bitmap. But that will remove it from the cache, so that it will reload the file again.
I strongly advise against changing any game files except the saves, since this will apply to all games.


- If you want to switch to a fixed image, better save both and simply overwrite your picture.


- If the image is generated at runtime, better directly display it via sprite, which is much faster than having to save it first.


- If the image is generated by PHP or something else on the server side, consider using it directly via Bitmap.load, which does not cache.
- If the image is generated by PHP or something else on the server side, consider using it directly via Bitmap.load, which does not cache.
I thought of suggesting this method, but it sounded like they want the event's image to change, and those will automatically make calls through the Image Manager, so that wouldn't help in this case.
Thank you guys! You are awesome! ^^

The problem is solved! 
You dont. You use it. You can clear it after if you wish.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-avoid-the-image-cache.51576/