Page MenuHomePhabricator

Help documentation should mention the cache time
Closed, ResolvedPublic

Description

[[mw:Extension:GlobalUserPage]] says "The $wgGlobalUserpageCacheExpiry controls how long to cache the rendered HTML for; the default is 60 * 60 * 24 * 7 (one week)."

Testing at shoutwiki confirms that the GlobalUserPage is cached, and changes to the GlobalUserPage do not immediately show up at local pages.

This point should be mentioned in the main documentation at [Help:Global user page], to avoid user-confusion.


Version: unspecified
Severity: enhancement

Details

Reference
bz66934

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:29 AM
bzimport added a project: GlobalUserPage.
bzimport set Reference to bz66934.

Instead of just saying it won't update for a week, I73ac36e6f9d3e4dfc21f518645bf8691bb6d9274 will introduce proper cache invalidation, so no documentation should be needed.

That said, if you use action=purge (right now), it should clear the cache.

(In reply to Kunal Mehta (Legoktm) from comment #1)

Instead of just saying it won't update for a week,
I73ac36e6f9d3e4dfc21f518645bf8691bb6d9274 will introduce proper cache
invalidation, so no documentation should be needed.

woo!

That said, if you use action=purge (right now), it should clear the cache.

Nope. I edited http://www.shoutwiki.com/wiki/User:Monkeytest and tried purging http://commandos.shoutwiki.com/wiki/User:Monkeytest (at both ends) but nothing changed at the latter, even after 6 hours.

(In reply to Kunal Mehta (Legoktm) from comment #1)

Instead of just saying it won't update for a week,
I73ac36e6f9d3e4dfc21f518645bf8691bb6d9274 will introduce proper cache
invalidation, so no documentation should be needed.

Hmm, that patch was merged, but my example pages at shoutwiki are still being cached (and are un-purgeable). Perhaps it's still using an older version of the extension?

For now, I've mentioned the cache in the (draft) documentation, at https://www.mediawiki.org/wiki/Help:Extension:GlobalUserPage

(Feel free to close this bug, or repurpose it for the cache issue itself)

I32cd876485398b5b860c375797e70bb7d8e31cd9 re-does the caching thing, but I'm closing this since it is now documented, as requested. There will always be some weird cases where the cache invalidation doesn't work, and in those cases we'll depend on the 1 week expiry.