Last modified: 2013-07-25 07:05:17 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 T40439, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38439 - Language factory uses too simplistic caching
Language factory uses too simplistic caching
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: need-volunteer
Depends on: 41103
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-17 13:49 UTC by jeblad
Modified: 2013-07-25 07:05 UTC (History)
5 users (show)

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


Attachments

Description jeblad 2012-07-17 13:49:23 UTC
The language factory uses a caching scheme that basically breaks down for Wikibase because a lot of languages are requested all the time, often for a single page. Languages used should be cached, and kept for at least the duration of the present page rendering. Probably it is easier to just set the number of languages cached somewhat higher and use a simple purging of the oldest language on a list of most recently used ones.
Comment 1 jeblad 2012-11-28 09:09:11 UTC
Change Iee2c796a: Attempt on fixing the suicidal LangObjCache
Comment 2 Andre Klapper 2013-02-26 21:05:45 UTC
The patch has been merged in 12/2012.

jeblad: Can this report be closed as RESOLVED FIXED? Or is this still an issue?
Comment 3 Andre Klapper 2013-04-29 11:11:32 UTC
jeblad: Can you answer comment 2, please?
Comment 4 Andre Klapper 2013-07-03 12:17:47 UTC
jeblad: Can you answer comment 2, please?
Comment 5 jeblad 2013-07-17 04:41:23 UTC
That is a partial fix, but the bug as it stand can be closed.

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


Navigation
Links