resetcache in config/api not in storage

This commit is contained in:
Emmanuel Garette 2019-02-24 10:44:15 +01:00
parent f03394563c
commit 715289a25a
4 changed files with 2 additions and 2 deletions

View file

@ -977,6 +977,7 @@ class TiramisuContextProperty(TiramisuContext):
else:
force_store_value = False
self._config_bag.context.cfgimpl_get_settings()._p_.importation(properties)
self._config_bag.context.cfgimpl_reset_cache(None, None)
del self._config_bag.properties
if force_store_value:
self._force_store_value()

View file

@ -685,6 +685,7 @@ class _CommonConfig(SubConfig):
duplicated_config.cfgimpl_get_settings()._p_.importation(properties)
duplicated_config.cfgimpl_get_settings()._pp_.importation(self.cfgimpl_get_settings(
)._pp_.exportation())
duplicated_config.cfgimpl_reset_cache(None, None)
if child is not None:
duplicated_config._impl_children.append(child)
child._impl_meta = weakref.ref(duplicated_config)

View file

@ -58,7 +58,6 @@ class Properties(Cache):
def importation(self, properties):
self._properties = properties
self.reset_all_cache()
class Permissives(Cache):

View file

@ -76,7 +76,6 @@ class Properties(Sqlite3DB):
self._session_id,
), False)
self._storage._conn.commit()
self.reset_all_cache()
class Permissives(Sqlite3DB):