Skip to content

Commit

Permalink
Merge pull request #137 from plone/erral-issue-136
Browse files Browse the repository at this point in the history
change download and images view purge path adapter registration to IDexterityContent
  • Loading branch information
davisagli authored Feb 8, 2024
2 parents 35d0b05 + af01365 commit 31efee7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions news/136.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Fix purging of image scale paths for Dexterity content.
[erral]

4 changes: 2 additions & 2 deletions plone/app/caching/purge.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from plone.app.caching.utils import isPurged
from plone.cachepurging.interfaces import IPurgePathRewriter
from plone.dexterity.content import get_assignable
from plone.dexterity.interfaces import IDexteritySchema
from plone.dexterity.interfaces import IDexterityContent
from plone.dexterity.schema import SCHEMA_CACHE
from plone.memoize.instance import memoize
from plone.namedfile.interfaces import INamedBlobFileField
Expand Down Expand Up @@ -172,7 +172,7 @@ def _getRoot(self):


@implementer(IPurgePaths)
@adapter(IDexteritySchema)
@adapter(IDexterityContent)
class ScalesPurgePaths:
"""Paths to purge for Dexterity object fields"""

Expand Down

0 comments on commit 31efee7

Please sign in to comment.