Handles caching of translator activity. More...
Public Member Functions | |
__construct (BagOStuff $cache, TranslatorActivityQuery $query, JobQueueGroup $jobQueue) | |
inLanguage (string $language) | |
Get translations activity for a given language. | |
updateAllLanguages () | |
Update cache for all languages, even if not stale. | |
updateLanguage (string $language) | |
Update cache for one language, even if not stale. | |
Public Attributes | |
const | CACHE_TIME = 3 * 24 * 3600 |
const | CACHE_STALE = 25 * 3600 |
Handles caching of translator activity.
Definition at line 21 of file TranslatorActivity.php.
MediaWiki\Extension\Translate\Statistics\TranslatorActivity::__construct | ( | BagOStuff | $cache, |
TranslatorActivityQuery | $query, | ||
JobQueueGroup | $jobQueue ) |
Definition at line 29 of file TranslatorActivity.php.
MediaWiki\Extension\Translate\Statistics\TranslatorActivity::inLanguage | ( | string | $language | ) |
Get translations activity for a given language.
StatisticsUnavailable | If loading statistics is temporarily not possible. |
Definition at line 43 of file TranslatorActivity.php.
MediaWiki\Extension\Translate\Statistics\TranslatorActivity::updateAllLanguages | ( | ) |
Update cache for all languages, even if not stale.
Definition at line 113 of file TranslatorActivity.php.
MediaWiki\Extension\Translate\Statistics\TranslatorActivity::updateLanguage | ( | string | $language | ) |
Update cache for one language, even if not stale.
StatisticsUnavailable | If loading statistics is temporarily not possible. |
Definition at line 137 of file TranslatorActivity.php.
const MediaWiki\Extension\Translate\Statistics\TranslatorActivity::CACHE_STALE = 25 * 3600 |
Definition at line 24 of file TranslatorActivity.php.
const MediaWiki\Extension\Translate\Statistics\TranslatorActivity::CACHE_TIME = 3 * 24 * 3600 |
Definition at line 22 of file TranslatorActivity.php.