Image (caching?) problem

Use this forum for questions regarding adoption and functionality of OpenEMM

Moderator: moderator

fabriceb
Posts: 4
Joined: Fri Aug 21, 2009 2:57 pm

Image (caching?) problem

Post 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
fabriceb
Posts: 4
Joined: Fri Aug 21, 2009 2:57 pm

Post 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
;-)
mmenke
Posts: 30
Joined: Fri Jul 24, 2009 12:14 pm
Location: Germany
Contact:

Post by mmenke »

Thanks for posting this, good hint! :)
Post Reply