r43961 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r43960‎ | r43961 | r43962 >
Date:01:56, 26 November 2008
Author:tomasz
Status:ok (Comments)
Tags:
Comment:
upping maximum execution time and memory limit
Modified paths:
  • /trunk/extensions/CentralNotice/SpecialNoticeTemplate.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralNotice/SpecialNoticeTemplate.php
@@ -440,6 +440,9 @@
441441 public function showViewAvailable( $template ) {
442442 global $wgOut, $wgUser;
443443
 444+ // Testing to see if bumping up the memory limit lets meta preview
 445+ ini_set( 'memory_limit', '120M' );
 446+
444447 $sk = $wgUser->getSkin();
445448
446449 // Pull all available text for a template
@@ -609,6 +612,8 @@
610613 * Copy all the data from one template to another
611614 */
612615 public function cloneTemplate( $source, $dest ) {
 616+ // Reset the timer as updates on meta take a long time
 617+ set_time_limit( 60 );
613618 // Pull all possible langs
614619 $langs = $this->getTranslations( $source );
615620

Comments

#Comment by Aaron Schulz (talk | contribs)   22:49, 26 November 2008

The limit is already 60

#Comment by Brion VIBBER (talk | contribs)   00:22, 4 December 2008

yay crappy hacks for now :(

Status & tagging log