Changes between Initial Version and Version 1 of Ticket #5525, comment 44
- Timestamp:
- Jan 3, 2015, 7:39:18 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #5525, comment 44
initial v1 1 Perhaps some other variable was meant to be cleared, e.g. `self._sections = {}` or `for k in self._sections: self. sections[k]._cache = {}`?1 Perhaps some other variable was meant to be cleared, e.g. `self._sections = {}` or `for k in self._sections: self._sections[k]._cache = {}`? 2 2 3 3 {{{#!python … … 5 5 config.get('a', 'b') # caches 'x' in config._sections['a']._cache['b'] 6 6 # change parent.ini to [a] b=y 7 config.parse_if_needed() # does not freecache7 config.parse_if_needed() # does not invalidate that cache 8 8 config.get('a', 'b') # should return 'y' but returns cached 'x' 9 9 }}}