Many of these words (hour/day/week/year) can adjust the TTL based on whether the value will change, rather than a blind TTL.
This would let the TTL adjustment be raised well above 3600 for many words, boosting parser cache duration.
Many of these words (hour/day/week/year) can adjust the TTL based on whether the value will change, rather than a blind TTL.
This would let the TTL adjustment be raised well above 3600 for many words, boosting parser cache duration.
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
parser: improve cache TTL accuracy for CURRENT*/LOCAL* magic words | mediawiki/core | master | +267 -88 |
Change 569628 had a related patch set uploaded (by Aaron Schulz; author: Aaron Schulz):
[mediawiki/core@master] parser: improve cache TTL accuracy for CURRENT*/LOCAL* magic words
Looks like we have a patch here and I'm willing to review & merge it, but it's currently failing CI. If it gets cleaned up (or do you need me to do that) I'm happy to take it the rest of the way.
There are some fundamental concerns raised by @tstarling on the patch, related to cache stampeding.
Change 569628 merged by jenkins-bot:
[mediawiki/core@master] parser: improve cache TTL accuracy for CURRENT*/LOCAL* magic words