Index: trunk/extensions/CentralNotice/SpecialBannerListLoader.php |
— | — | @@ -8,8 +8,8 @@ |
9 | 9 | public $language; // Project language |
10 | 10 | public $location; // User country |
11 | 11 | public $centralNoticeDB; |
12 | | - protected $sharedMaxAge = 150; // Cache for ? minutes on the server side |
13 | | - protected $maxAge = 150; // Cache for ? minutes on the client side |
| 12 | + protected $sharedMaxAge = 900; // Cache for 15 minutes on the server side |
| 13 | + protected $maxAge = 900; // Cache for 15 minutes on the client side |
14 | 14 | protected $contentType = 'text/javascript'; |
15 | 15 | |
16 | 16 | function __construct() { |
Index: trunk/extensions/CentralNotice/SpecialBannerLoader.php |
— | — | @@ -6,7 +6,7 @@ |
7 | 7 | class SpecialBannerLoader extends UnlistedSpecialPage { |
8 | 8 | public $siteName = 'Wikipedia'; // Site name |
9 | 9 | public $language = 'en'; // User language |
10 | | - protected $sharedMaxAge = 150; // Cache for 2 hours on the server side |
| 10 | + protected $sharedMaxAge = 900; // Cache for 15 minutes on the server side |
11 | 11 | protected $maxAge = 0; // No client-side banner caching so we get all impressions |
12 | 12 | protected $contentType = 'text/html'; |
13 | 13 | |
Index: trunk/extensions/CentralNotice/SpecialBannerController.php |
— | — | @@ -5,8 +5,8 @@ |
6 | 6 | */ |
7 | 7 | class SpecialBannerController extends UnlistedSpecialPage { |
8 | 8 | public $centralNoticeDB; |
9 | | - protected $sharedMaxAge = 150; // Cache for ? minutes on the server side |
10 | | - protected $maxAge = 150; // Cache for ? minutes on the client side |
| 9 | + protected $sharedMaxAge = 7200; // Cache for 2 hours on the server side |
| 10 | + protected $maxAge = 7200; // Cache for 2 hours on the client side |
11 | 11 | protected $contentType = 'text/javascript'; |
12 | 12 | |
13 | 13 | function __construct() { |