Page MenuHomePhabricator

Reduce TTL lowering effect and raise cache accuracy of CURRENT*/LOCAL* magic words
Closed, ResolvedPublic

Description

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.

Event Timeline

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

https://gerrit.wikimedia.org/r/569628

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.

Just a merge conflict. I rebased it.

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

https://gerrit.wikimedia.org/r/569628

This one landed!