When using SaveBody It seems that every file is cached, running free-m before and after emailing a image attachment on 1.5MB chanaged it like the table below:
When i in the application click on the images (saved on disk) it gets loaded instanstly in the browser. Is there any php trick to prevent cache files like this? Assume there are some concurrent emails coming it, it will soon eat up all memory
Manuel Lemos - 2013-01-13 09:11:26 - In reply to message 1 from Pontus Lundin
I would need to see your script to understand what you are doing.
If you are saving message image parts to files and point the pages to show the images using the directory where the files were saved, PHP is not used serve the images, so PHP does not control how images may be cached by the browser.
You would need to change the image URLs to some script that serves the images indirectly. You have more caching control and you do not risk yourself to security exploits caused by forged images crafted to abuse your application.