resetcache in config/api not in storage
This commit is contained in:
parent
f03394563c
commit
715289a25a
|
@ -977,6 +977,7 @@ class TiramisuContextProperty(TiramisuContext):
|
||||||
else:
|
else:
|
||||||
force_store_value = False
|
force_store_value = False
|
||||||
self._config_bag.context.cfgimpl_get_settings()._p_.importation(properties)
|
self._config_bag.context.cfgimpl_get_settings()._p_.importation(properties)
|
||||||
|
self._config_bag.context.cfgimpl_reset_cache(None, None)
|
||||||
del self._config_bag.properties
|
del self._config_bag.properties
|
||||||
if force_store_value:
|
if force_store_value:
|
||||||
self._force_store_value()
|
self._force_store_value()
|
||||||
|
|
|
@ -685,6 +685,7 @@ class _CommonConfig(SubConfig):
|
||||||
duplicated_config.cfgimpl_get_settings()._p_.importation(properties)
|
duplicated_config.cfgimpl_get_settings()._p_.importation(properties)
|
||||||
duplicated_config.cfgimpl_get_settings()._pp_.importation(self.cfgimpl_get_settings(
|
duplicated_config.cfgimpl_get_settings()._pp_.importation(self.cfgimpl_get_settings(
|
||||||
)._pp_.exportation())
|
)._pp_.exportation())
|
||||||
|
duplicated_config.cfgimpl_reset_cache(None, None)
|
||||||
if child is not None:
|
if child is not None:
|
||||||
duplicated_config._impl_children.append(child)
|
duplicated_config._impl_children.append(child)
|
||||||
child._impl_meta = weakref.ref(duplicated_config)
|
child._impl_meta = weakref.ref(duplicated_config)
|
||||||
|
|
|
@ -58,7 +58,6 @@ class Properties(Cache):
|
||||||
|
|
||||||
def importation(self, properties):
|
def importation(self, properties):
|
||||||
self._properties = properties
|
self._properties = properties
|
||||||
self.reset_all_cache()
|
|
||||||
|
|
||||||
|
|
||||||
class Permissives(Cache):
|
class Permissives(Cache):
|
||||||
|
|
|
@ -76,7 +76,6 @@ class Properties(Sqlite3DB):
|
||||||
self._session_id,
|
self._session_id,
|
||||||
), False)
|
), False)
|
||||||
self._storage._conn.commit()
|
self._storage._conn.commit()
|
||||||
self.reset_all_cache()
|
|
||||||
|
|
||||||
|
|
||||||
class Permissives(Sqlite3DB):
|
class Permissives(Sqlite3DB):
|
||||||
|
|
Loading…
Reference in New Issue