Last modified: 2014-11-17 10:35:25 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T47973, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 45973 - Math caching recently broken
Math caching recently broken
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Math (Other open bugs)
unspecified
All All
: Highest major with 2 votes (vote)
: ---
Assigned To: Ori Livneh
: performance
Depends on:
Blocks: 46034
  Show dependency treegraph
 
Reported: 2013-03-11 02:44 UTC by Robert Rohde
Modified: 2014-11-17 10:35 UTC (History)
9 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Robert Rohde 2013-03-11 02:44:01 UTC
Recent upgrades (circa March 6, 2013 or a little before) seem to have broken the math caching system in some way.

The key symptom is that pages with many new / recently added equations take a very long time to save / preview.  It appears that the math formulas are being repeatedly regenerated on each save even though they ought to be stored after the first run.

However, it also appears that old pages still render quickly.  In other words, it appears that Mediawiki knows that previously cached formulas are still cached but it isn't placing new formulas into the caching system correctly.

Examples:

Good version with old formulas that renders quickly:

http://en.wikipedia.org/wiki/User:Dragons_flight/math1

Requires 1.1 s to preview

Bad version with new formulas that renders slowly:

http://en.wikipedia.org/wiki/User:Dragons_flight/math2

Requires 47.5 s to preview 

Both times are based on the "served by" comment in the HTML source generated after preview.  The only difference between the pages is that all instances of <math> ... </math> have been replaces with <math> ... = 1 </math> in the new version in order to create "new" equations.  

Related complaints:

http://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_(technical)&oldid=543209802#Posting_to_the_math_reference_desk_is_really_slow

http://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_(technical)&oldid=543209802#Technical_difficulty_with_editing_ring_.28mathematics.29
Comment 1 Matthew Flaschen 2013-03-11 06:28:21 UTC
Physikerwelt has a fix under review:

https://gerrit.wikimedia.org/r/#/c/49488/
Comment 2 Ori Livneh 2013-03-12 00:05:07 UTC
(In reply to comment #0)
> Bad version with new formulas that renders slowly:
> 
> http://en.wikipedia.org/wiki/User:Dragons_flight/math2
> 
> Requires 47.5 s to preview 

I just checked, and: <!-- Served by mw1022 in 0.819 secs. -->

Is this still an issue? If so, how can I reproduce it?
Comment 4 Ori Livneh 2013-03-12 00:16:16 UTC
(In reply to comment #2)
> (In reply to comment #0)
> > Bad version with new formulas that renders slowly:
> > 
> > http://en.wikipedia.org/wiki/User:Dragons_flight/math2
> > 
> > Requires 47.5 s to preview 
> 
> I just checked, and: <!-- Served by mw1022 in 0.819 secs. -->
> 
> Is this still an issue? If so, how can I reproduce it?

Sorry, my mistake: I forgot I had enabled MathJax recently.
Comment 5 Ori Livneh 2013-03-12 04:12:15 UTC
Gerrit change Id58dac55c
Comment 6 Matthew Flaschen 2013-03-12 04:44:31 UTC
Redone as https://gerrit.wikimedia.org/r/#/c/53319/ .
Comment 7 Matthew Flaschen 2013-03-12 05:07:04 UTC
Merged.  Thanks again to Ori for tracking this down.
Comment 8 Ori Livneh 2013-03-12 05:14:07 UTC
(In reply to comment #0)
> Bad version with new formulas that renders slowly:
> 
> http://en.wikipedia.org/wiki/User:Dragons_flight/math2

Looks fine now.
Comment 9 Gerrit Notification Bot 2013-04-06 23:04:47 UTC
https://gerrit.wikimedia.org/r/49488 (Gerrit Change Ic9e8ee7558e0496e3cffd4d3e8bea7a4c0c7d276) | change ABANDONED [by Physikerwelt]

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links