Page 1 of 1

Image (caching?) problem

Posted: Fri Aug 21, 2009 3:29 pm
by fabriceb
Hi,

I believe I'm having some kind of caching issue using images in openemm.

When replacing an image with a different one that has the same name under "picture components", the old image is still displayed in the preview and in the actual email created by openemm.

We include the image like this:

Code: Select all

<img src="[agnIMAGE name="myimage.jpg"]"/>
We replace the image by first deleting the old image under "picture components" and then uploading a different image that bears the same filename.

The only way to get openemm to display the new image seems to be by restarting openemm (Openemm stop & Openemm start).

Any help on this is appreciated.

Cheers,

Fabrice Bongartz

Posted: Mon Aug 24, 2009 10:31 am
by fabriceb
I found the solution myself:

In /home/openemm/webapps/core/WEB-INF/classes/emm.properties, I changed

Code: Select all

hostedImage.maxCacheTimeMillis=300000
to

Code: Select all

hostedImage.maxCacheTimeMillis=0
;-)

Posted: Thu Sep 10, 2009 9:44 pm
by mmenke
Thanks for posting this, good hint! :)