Last modified: 2014-02-12 23:53:37 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 T31361, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 29361 - Long execution time for extension init
Long execution time for extension init
Status: RESOLVED FIXED
Product: MobileFrontend
Classification: Unclassified
stable (Other open bugs)
unspecified
All All
: Normal normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-06-12 22:14 UTC by Derk-Jan Hartman
Modified: 2014-02-12 23:53 UTC (History)
10 users (show)

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


Attachments

Description Derk-Jan Hartman 2011-06-12 22:14:52 UTC
I was trying to look at MobileFrontend today, but i was getting timeouts because the device parser needs to work through the WURFL database the first time it runs I suspect. On my wiki that was continuously failing due to max_execution_time.

Such an intensive job should probably be thrown on the job queue.
Comment 1 Brion Vibber 2011-06-13 17:29:24 UTC
Job queue wouldn't be suitable, as there'd be nothing to do until it was complete.

It should probably be preprocessed and only the useful bits retained & distributed with source, as with our Unicode conversion & normalization tables.
Comment 2 Patrick Reilly 2011-06-13 18:50:23 UTC
Not really sure what to do with this bug. There are about 13,969 files needed in the cache for WURFL to work correctly. I don't really know that we want this in our repository. I'm researching switching to memcache for the storage vs. the file based cache.
Comment 3 Mark A. Hershberger 2011-06-14 21:57:45 UTC
(In reply to comment #2)
> I'm researching switching to memcache for the storage vs. the file based cache.

For the purposes of an extension that is used by more than WikiFarms like Wikimedia, it would be good to provide some sort of pre-parsed PHP like Brion is talking about.
Comment 4 Patrick Reilly 2011-06-14 21:59:35 UTC
I'm still researching what will be the best solution for this issue. I'll update the bug once I've got some ideas.
Comment 5 Max Semenik 2012-02-28 17:29:18 UTC
Can we just init cache from a command-line script?
Comment 6 Max Semenik 2012-03-29 15:33:03 UTC
No more WURFL === no more slow startup.

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


Navigation
Links