Page MenuHomePhabricator

Pregeneration rules don't pregenerate caches for the same cases restbase did
Closed, ResolvedPublic

Description

Currently we only pregenerate on null_edit. Need to add rules for other events too:

  • article edit
  • visibility change
  • article move
  • article delete

Event Timeline

Change #1125225 had a related patch set uploaded (by Jgiannelos; author: Jgiannelos):

[operations/deployment-charts@master] pcs: Add missing rules for content pregeneration

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

As a workaround i put some orchestration in stat1010 that reads the resource change topics and invalidates caches outside of change-prop until we have the proper solution deployed.

Change #1125225 merged by jenkins-bot:

[operations/deployment-charts@master] pcs: Add missing rules for content pregeneration

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

So far I've tested:

  • Editing a page -> edit shows up in mobile-html output
  • Editing a template -> transclusion edit shows up in mobile-html output
  • PCS emits resource change events
  • PCS emits resource purge events and the purge actually purges CDN
  • Purging a page -> purges PCS

All of them work

Change #1128900 had a related patch set uploaded (by Jgiannelos; author: Jgiannelos):

[mediawiki/services/mobileapps@master] caching: Don't cache specific revisions

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

Change #1128900 abandoned by Jgiannelos:

[mediawiki/services/mobileapps@master] caching: Don't cache specific revisions by default

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