diff options
author | Magnus Hagander | 2020-11-20 15:44:44 +0000 |
---|---|---|
committer | Magnus Hagander | 2020-11-23 10:58:51 +0000 |
commit | e24e987c29b21c310ffbc1b65ce0038fecb32cfa (patch) | |
tree | 24ecd0ed3c20785611dd82c3a33bbbe07569d2a5 /pgweb/util/middleware.py | |
parent | 1cfef71c52b32fcd7e59e3e5ea0a31baa3a0462d (diff) |
Only flag docs as loaded when they've actually changed
We already avoided the actual updates (by filtering the UPDATE
statement), but since we set the load date we'd trigger a change to
every page and kick it ouf of the caches even when not chagned, which is
wasteful. So instead only do that if something has changed. When it has,
we still reset that whole version of the docs since we want the load
date to be consistent across them.
Diffstat (limited to 'pgweb/util/middleware.py')
0 files changed, 0 insertions, 0 deletions