Last modified: 2014-05-31 12:39:17 UTC
As mwalker said: "if you are creating the navigation bar in php; that means it gets cached for logged out users; which means that you would have to invalidate all constituent pages in a book every time the json changes" A note for later: he suggests this can be done using Title::makeTitle(1, 'foo')->purgeSquid()
Published as Google Code-in task.
Will just executing the function : Title::makeTitle(1, 'foo')->purgeSquid() invalidate all constituent pages in a book ? So, I should add this code in the proper place, Right ?
Change 104208 had a related patch set uploaded by Geek400: Bug 52343 https://gerrit.wikimedia.org/r/104208
Change 104335 had a related patch set uploaded by Geek400: BookManagerv2: Clear cache when JSON file changes https://gerrit.wikimedia.org/r/104335
Change 105441 had a related patch set uploaded by Mayankmadan: BookManagerv2: Invalidate navbar cache when JSON file changes Invalidate all constituent pages in a book when the JSON file changes. https://gerrit.wikimedia.org/r/105441
How about just using Title::newFromText() method to get a title object and then run purgeSquid() on it?
How about https://github.com/wikimedia/mediawiki-core/blob/master/includes/job/jobs/HTMLCacheUpdateJob.php#L137-154 for a solution? Something like this to purge all the pages?
Change 104335 abandoned by Siebrand: BookManagerv2: Clear cache when JSON file changes Reason: This is simply a newline. https://gerrit.wikimedia.org/r/104335
Change 105441 abandoned by Bartosz Dziewoński: BookManagerv2: Invalidate navbar cache when JSON file changes Invalidate all constituent pages in a book when the JSON file changes. Reason: There's no will from the uploader to improve this, clearing up the backlog. https://gerrit.wikimedia.org/r/105441