MediaWiki master
UserOptionsCacheEntry.php
Go to the documentation of this file.
1<?php
2
4
6
14 public $modifiedValues = [];
15
19 public $sources = [];
20
25
32
34 public $recency;
35
42 public function canUseCachedValues( $recency ) {
43 $recencyUsed = $this->recency ?? IDBAccessObject::READ_NONE;
44 return $recencyUsed >= $recency;
45 }
46}
array< string, string > null $originalValues
Cached original user options with all the adjustments like time correction and hook changes applied.
array< string, mixed > $modifiedValues
Values modified by setOption(), queued for update.
int null $recency
Query flags used to retrieve options from database.
canUseCachedValues( $recency)
Determine if it's OK to use cached options values for a given user and query flags.
array< string, string > $globalUpdateActions
The value of the $global parameter to setOption()
array< string, string > $sources
The source name for each value in $originalValues.
Interface for database access objects.