Changeset 927470d in tailbone


Ignore:
Timestamp:
08/03/2022 03:15:49 PM (6 months ago)
Author:
Lance Edgar <lance@…>
Branches:
master
Children:
ba8faac
Parents:
4ff0450
Message:

Force cache invalidation when Raw Setting is edited

only applies if caching is actually in use

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tailbone/views/settings.py

    r4ff0450 r927470d  
    8080            return not bool(self.feedback.match(setting.name))
    8181        return True
     82
     83    def after_edit(self, setting):
     84        # nb. force cache invalidation - normally this happens when a
     85        # setting is saved via app handler, but here that is being
     86        # bypassed and it is saved directly via standard ORM calls
     87        self.rattail_config.beaker_invalidate_setting(setting.name)
    8288
    8389    def deletable_instance(self, setting):
Note: See TracChangeset for help on using the changeset viewer.