diff options
| author | 2021-01-23 04:36:26 +0100 | |
|---|---|---|
| committer | 2021-01-23 04:36:26 +0100 | |
| commit | 59ca1cbed6bcf234b9eb277da291bdaeb259e939 (patch) | |
| tree | fb8e9e49bcd1585a500d1943e6682561a424fc75 /tests/helpers.py | |
| parent | Merge remote-tracking branch 'upstream/master' into doc-imp (diff) | |
Properly handle cache being cleared
Previously the code deleted the entry of all of the DocItems of the page
after its contents were requested once, but this caused problems when
the cache was cleared when it expired.
Instead of deleting the entry to check if it should be queued on the
next item request, we keep it and create an entry in the
_item_futures dict for all items again and check for containment there.
To avoid populating the queue multiple times with the same item in some
cases the futures cleanup task will now only run when the queue is empty
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions