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):