Krenair

#mediawiki discussion of a cache issue

Mar 7th, 2012
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.00 KB | None | 0 0
  1. Mar 06 18:34:26 <Krenair> So I changed MediaWiki:Wikilove-barnstar-antispam-desc but it doesn't seem to have had any effect.
  2. Mar 06 18:35:03 <Krinkle> Krenair: Which wiki?
  3. Mar 06 18:35:12 <Krenair> mediawikiwiki
  4. Mar 06 18:35:23 <Krinkle> ![[ MediaWiki:Wikilove-barnstar-antispam-desc
  5. Mar 06 18:35:24 <mw-bot> https://www.mediawiki.org/wiki/MediaWiki%3AWikilove-barnstar-antispam-desc
  6. Mar 06 18:35:45 <Krenair> Another thing I noticed is that edits to that namespace don't show up in RecentChanges
  7. Mar 06 18:37:03 <Krinkle> Krenair: interesting
  8. Mar 06 18:37:37 <Krinkle> Krenair: Are you familiar with Javascript ?
  9. Mar 06 18:37:46 <Krenair> Yes, why?
  10. Mar 06 18:37:54 <Krinkle> Krenair: https://bits.wikimedia.org/www.mediawiki.org/load.php?debug=false&lang=en&modules=ext.wikiLove.local&skin=vector&version=20110101T000000Z&*
  11. Mar 06 18:38:00 <Krinkle> that's where it loads all the messages from the wiki
  12. Mar 06 18:38:15 <Krinkle> it's in i18n cache
  13. Mar 06 18:38:32 <Krinkle> I know the css/js is cleared instantly when it detects a change
  14. Mar 06 18:38:39 <Krinkle> I'm not sure about i18n messages
  15. Mar 06 18:38:54 <RoanKattouw> Yes, that is also purged
  16. Mar 06 18:38:57 <RoanKattouw> (i18n)
  17. Mar 06 18:39:02 <Krinkle> RoanKattouw: Do ResourceLoader modules also check i18n messages last change timestamp? (from mediawiki namespace)
  18. Mar 06 18:39:15 <RoanKattouw> Yes, as long as clearMessageBlobs.php is run
  19. Mar 06 18:39:24 <RoanKattouw> Which means the person deploying it must use scap as opposed to sync-file
  20. Mar 06 18:39:33 <Krinkle> "mediawiki namespace"
  21. Mar 06 18:39:36 <RoanKattouw> But with Tim's manualRecache changes I think that's now true anyway
  22. Mar 06 18:39:38 <RoanKattouw> Oh, MW namespace
  23. Mar 06 18:39:40 <RoanKattouw> Yes, I believe so
  24. Mar 06 18:39:51 <Krenair> Krinkle, http://www.mediawiki.org/w/load.php?debug=true&lang=en&modules=ext.wikiLove.local&skin=vector&version=20110101T000000Z&* shows the correct one
  25. Mar 06 18:40:03 <Krinkle> Krenair: It's shows the old message for me
  26. Mar 06 18:40:10 <Krinkle> r","wikilove-barnstar-antispam-desc":"The Anti-Spam Barnstar is awarded to users who do an exceptional job fighting against spam on Wikipedia.",
  27. Mar 06 18:40:18 <RoanKattouw> Krinkle: 5-minute startup module caveat applies of course
  28. Mar 06 18:40:29 <Krenair> Krinkle, your link shows the old one to me. This link shows the new one
  29. Mar 06 18:40:33 <Krinkle> Krenair: Clear your browser cache now, It should be fine now
  30. Mar 06 18:40:36 <RoanKattouw> Also, version=20110101T000000Z ? That looks suspicious
  31. Mar 06 18:40:51 <Krinkle> hm.. yeah
  32. Mar 06 18:40:59 <Krinkle> where does it get that timestamp from
  33. Mar 06 18:40:59 <RoanKattouw> That's $wgCacheEpoch
  34. Mar 06 18:41:05 <Krinkle> oh oh
  35. Mar 06 18:41:27 <RoanKattouw> Well, was the page edited at all in 2011 or 2012?
  36. Mar 06 18:41:31 <Krenair> Still getting the old one...
  37. Mar 06 18:41:43 <Krenair> I edited one of the values it shows just now
  38. Mar 06 18:44:04 <Krinkle> RoanKattouw: /* cache key: mediawikiwiki:resourceloader:filter:minify-js:7:78701fbf21fb69b9dd0935b605210be4 */ startup module is still giving the old timestamp
  39. Mar 06 18:44:38 <Krinkle> if I remove that version= though, then it does show the correct message
  40. Mar 06 18:45:16 <Krenair> So why is it loading an older version?
  41. Mar 06 18:46:43 <RoanKattouw> Krinkle: But the startup module is still serving the 2011 timestamp somehow?
  42. Mar 06 18:46:47 * RoanKattouw touches startup module
  43. Mar 06 18:46:48 <Krinkle> RoanKattouw: yeah, startup module gives 1293840000 as timestamp which is the same as modules with no content (e.g. 'noscript')
  44. Mar 06 18:52:39 <Krinkle> RoanKattouw: So I'm guessing somehow RL is failing to detect the timestamps of the messages
  45. Mar 06 18:52:49 <RoanKattouw> Yeah that's strange
  46. Mar 06 18:52:58 <Krinkle> I didn't know it had that feature
  47. Mar 06 18:53:06 <RoanKattouw> Well, wait
  48. Mar 06 18:53:17 <RoanKattouw> Could you hard-refresh the startup module and check the timestamp again?
  49. Mar 06 18:53:32 <Krinkle> ext.wikiLove.local","1293840000
  50. Mar 06 18:53:36 <Krinkle> RoanKattouw: same
Advertisement
Add Comment
Please, Sign In to add comment