Page MenuHomePhabricator

New flags are not immediately visible in version history
Closed, ResolvedPublic

Description

Author: pbirken

Description:
If you flag a version, the flag dows not become visible in the version history immediately, but only after a few minutes. This does not seem to be the case for automatically flagged versions, only if you flag manually.


Version: unspecified
Severity: normal
URL: http://de.labs.wikimedia.org/

Details

Reference
bz13403

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:04 PM
bzimport set Reference to bz13403.
bzimport added a subscriber: Unknown Object (MLST).

This is a general problem, and revisiondelete has it too. Histories tell the client to use the cache as long as it is after the last edit timestamp. Since revision deletions and taggings don't change that, it doesn't tell the client cache to clear.

It might be nice to make a sort of generalized cache timestamp table for this stuff.

Er, isn't that was page_touched is for?

(In reply to comment #2)

Er, isn't that was page_touched is for?

Not at all :)

That is for cache-related reasons. It could be changed many times without the history actually changing (like pressing a purge tab), so the history relies only on the last revision timestamp.

The last revision timestamp is insufficient to serve as a cache invalidation timestamp for history view -- revisions older than the latest may be deleted, undeleted, or imported.

These events would (or *should*!) update page_touched, however.

OK, so then this bug is now a matter of changing how it works (use page_touched). Shouldn't be that difficult then.