Skip to content

Commit

Permalink
FIX: Force placeholder cache clearing when updating a PlaceholderFiel…
Browse files Browse the repository at this point in the history
…d content
  • Loading branch information
Benjamin PIERRE committed Sep 21, 2020
1 parent 01f53e4 commit c9a80df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cms/models/placeholdermodel.py
Expand Up @@ -511,6 +511,9 @@ def mark_as_dirty(self, language, clear_cache=True):
elif attached_model is StaticPlaceholder:
StaticPlaceholder.objects.filter(draft=self).update(dirty=True)

else:
self.clear_cache(language)

def get_plugin_tree_order(self, language, parent_id=None):
"""
Returns a list of plugin ids matching the given language
Expand Down

0 comments on commit c9a80df

Please sign in to comment.