Index: trunk/extensions/ContributionReporting/ContributionReporting.php |
— | — | @@ -103,10 +103,9 @@ |
104 | 104 | $egFundraiserStatisticsMaximum = 10000; |
105 | 105 | |
106 | 106 | // Cache timeout for fundraiser statistics, in seconds |
107 | | -$egFundraiserStatisticsCacheTimeout = 300; // 5 minutes |
| 107 | +$egFundraiserStatisticsCacheTimeout = 900; // 15 minutes |
108 | 108 | |
109 | 109 | |
110 | | - |
111 | 110 | $wgContributionTrackingStatisticsViewWeeks = 3; |
112 | 111 | |
113 | 112 | $wgHooks['ParserFirstCallInit'][] = 'efContributionReportingSetup'; |
Index: trunk/extensions/ContributionReporting/FundraiserStatistics_body.php |
— | — | @@ -22,7 +22,12 @@ |
23 | 23 | if ( $wgRequest->wasPosted() ) { |
24 | 24 | $showYear[$fundraiser['id']] = $wgRequest->getCheck( 'toogle'.$fundraiser['id'] ); |
25 | 25 | } else { |
26 | | - $showYear[$fundraiser['id']] = true; |
| 26 | + // By default, show only the fundraising years after 2008 |
| 27 | + if ( intval( $fundraiser['id'] ) > 2008 ) { |
| 28 | + $showYear[$fundraiser['id']] = true; |
| 29 | + } else { |
| 30 | + $showYear[$fundraiser['id']] = false; |
| 31 | + } |
27 | 32 | } |
28 | 33 | } |
29 | 34 | |
— | — | @@ -205,8 +210,9 @@ |
206 | 211 | } |
207 | 212 | $wgOut->addHTML( Xml::openElement( 'div', array( 'id' => 'configholder' ) ) ); |
208 | 213 | $wgOut->addHTML( $years ); |
209 | | - $wgOut->addHTML( wfMsg( 'fundraiserstats-time-zone' ).'<br/>' ); |
210 | | - $wgOut->addHTML( ' '.Xml::listDropDown( 'timezone', $this->dropDownList( range ( -12, 14, 1 ) ), '', $this->timezone, '', 1 ).' '.wfMsg( 'fundraiserstats-utc' ) ); |
| 214 | + // TODO: Fix timezone feature to work with caching correctly. |
| 215 | + // $wgOut->addHTML( wfMsg( 'fundraiserstats-time-zone' ).'<br/>' ); |
| 216 | + // $wgOut->addHTML( ' '.Xml::listDropDown( 'timezone', $this->dropDownList( range ( -12, 14, 1 ) ), '', $this->timezone, '', 1 ).' '.wfMsg( 'fundraiserstats-utc' ) ); |
211 | 217 | $wgOut->addHTML( Xml::closeElement( 'div' ) ); |
212 | 218 | |
213 | 219 | $wgOut->addHTML( Xml::closeElement( 'form' ) ); |