1. Kai Diefenbach
  2. django-lfc
  3. Issues
Issue #50 resolved

Caching problem with images

Jakub Wiśniowski
created an issue

There is a problem with cache that is not invalidated after new images are added to object (Page) or updated. I checked this on 1.0 but it probably still exists in newer versions of LFC.

I suggest adding: {{{

!python

images_cache_key = "%s-images-%s-%s" % \ (settings.CACHE_MIDDLEWARE_KEY_PREFIX, obj.content_type, obj.id) cached_images = cache.delete(images_cache_key) }}}

to methods like: add_object_images, update_object_images and probably to their portal versions too. These methods are from lfc.manage package.

Comments (1)

  1. Log in to comment