hoo added a comment.

> So, as far as I can see, we can get rid of eu_touched only if we replace it 
> with eu_cache_key. That would effectively mean tracking usage for each target 
> language separately.

I don't see why that would be the case. It seems to me you are under the 
misconception that we purge caches for individual languages, but we don't (and 
can't). Once something relevant for one page changes, we need to throw away all 
cache entries for that page anyway.

What we already do right now (if you read my above analysis closely) is 
tracking all entity usages that are associated with a page (that can mean one 
ore more ParserCache entries with different cache keys and whatnot). We don't 
need to know which cache entry these keys belong to in the end, we just need to 
know which page we need to purge in case.

Once MediaWiki decides that the page caches need to get cleared, we throw away 
all entity usages rows (effectively, as we purge all that are older than 
`wfTimestampNow()`) and then insert the new usages of the (at that point) 
single new ParserCache entry.


TASK DETAIL
  https://phabricator.wikimedia.org/T124737

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: hoo
Cc: Aklapper, StudiesWorld, JanZerebecki, aude, daniel, Lydia_Pintscher, hoo, 
Wikidata-bugs, Mbch331



_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to