http://www.mediawiki.org/wiki/Special:Code/MediaWiki/73503
Revision: 73503
Author: dale
Date: 2010-09-22 00:27:59 +0000 (Wed, 22 Sep 2010)
Log Message:
-----------
added 3600 cache time to parse and search timed text requests. This means
timedText updates will be delayed by up to one hour but should be more gentle
on the apaches when lots of people play back the same video clip.
Modified Paths:
--------------
branches/MwEmbedStandAlone/modules/TimedText/mw.TimedText.js
Modified: branches/MwEmbedStandAlone/modules/TimedText/mw.TimedText.js
===================================================================
--- branches/MwEmbedStandAlone/modules/TimedText/mw.TimedText.js
2010-09-22 00:22:49 UTC (rev 73502)
+++ branches/MwEmbedStandAlone/modules/TimedText/mw.TimedText.js
2010-09-22 00:27:59 UTC (rev 73503)
@@ -1165,7 +1165,9 @@
loadTitleKey: function( titleKey, callback ) {
var request = {
'action': 'parse',
- 'page': titleKey
+ 'page': titleKey,
+ 's-maxage' : 3600,
+ 'maxage' : 3600
};
mw.getJSON( this.apiUrl, request, function( data ) {
if ( data && data.parse && data.parse.text['*']
) {
@@ -1209,7 +1211,9 @@
'apprefix' : titleKey,
'apnamespace' : this.getTimedTextNS(),
'aplimit' : 200,
- 'prop':'revisions'
+ 'prop':'revisions',
+ 's-maxage' : 3600,
+ 'maxage' : 3600
};
mw.getJSON( this.apiUrl, request, function( sourcePages
) {
// If "timedText" is not a valid namespace try
"just" with prefix:
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs