Page MenuHomePhabricator

__NOCACHE__ magic word
Closed, ResolvedPublic

Description

Author: MrShlee

Description:
"$wgUseFileCache = true;"

The functionality of the file caching works fine but limits the eze of
extensions that create dynamic content.

Logged in user: will pull the content directly from the database and generate
the content directly
logged out user: will pull the content from the local cache and will contain the
"snapshot" of what the dynamic content was the last time the page edit was
submitted.

DPG2 doesn't work with caching!

Could you find a way to create a stop cache value in extensions such as DPG2 or
look into making some kind of NOCACHE magic word?


Version: 1.8.x
Severity: enhancement
OS: Windows XP
Platform: PC

Details

Reference
bz7999

Event Timeline

bzimport raised the priority of this task from to High.Nov 21 2014, 9:28 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz7999.
bzimport added a subscriber: Unknown Object (MLST).

robchur wrote:

A NOCACHE magic word would be prone to abuse.

In most cases, parser extensions ought to use the ParserOutput object to work
around the caching problem, if possible. In other cases, the extension might be
able to disable the cache in particular instances (this can be done within the
rendering function, through the $parser reference), otherwise the users of the
extension should accept that the output won't be 100% up-to-the-minute.

The extension should be able to mark the page non-cacheable already, as I
understand it.

I'm going to go ahead and dupe this to bug 7998; if DPL2 or whatever needs
to be adjusted, that's the place.

  • This bug has been marked as a duplicate of 7998 ***