Ticket #13536 (confirmed Bug)

Opened 3 years ago

Last modified 3 years ago

plone.app.imaging and plone.outputfilters caching problems

Reported by: petschki Owned by: witsch, davisagli
Priority: minor Milestone: 4.x
Component: General Version: 4.2
Keywords: image, scale, outputfilters, cache Cc:

Description (last modified by petschki) (diff)

scenario:

  • upload an image
  • create a document and place the image in tinymce with a scale
  • change the original image resource
  • take a look at the document: it still shows the old scaled image

this is because the rendered image link from plone.outputfilters gets cached in portal_transforms for one hour or when the document has modified (or the zope instance is restarted) and p.a.imaging never removes/purges rendered scales. it just creates a new hash for the image scale url

possible solution:

check with linkintegrity where the image is in use and fire a modification event on those documents (?) just a quick thought ...

Change History

comment:1 Changed 3 years ago by petschki

stumbled upon this article  http://david.wglick.org/2009/image-captions-and-the-portaltransforms-cache/

so there are two more possible solutions:

  • wait one hour :)
  • adjust cache lifetime like mentioned in article above

comment:2 Changed 3 years ago by kleist

  • Status changed from new to confirmed
  • Component changed from Unknown to General

comment:3 Changed 3 years ago by petschki

  • Description modified (diff)
Note: See TracTickets for help on using tickets.