You can also just set old_parent._contents_cache_stale = len(old_parent.contents) just after inserting, rather than dealing with last_stale. The call to index fully initializes the cache.
Cheers, Luke
You can also just set old_parent. _contents_ cache_stale = len(old_ parent. contents) just after inserting, rather than dealing with last_stale. The call to index fully initializes the cache.
Cheers,
Luke