MediaWiki master
|
Track per-module file dependencies in the core module_deps table. More...
Inherits Wikimedia\DependencyStore\DependencyStore.
Public Member Functions | |
__construct (ILoadBalancer $lb) | |
remove ( $type, $entities) | |
Delete the currently tracked dependencies for an entity or set of entities. | |
retrieveMulti ( $type, array $entities) | |
Get the currently tracked dependencies for a set of entities. | |
storeMulti ( $type, array $dataByEntity, $ttl) | |
Set the currently tracked dependencies for a set of entities. | |
Public Member Functions inherited from Wikimedia\DependencyStore\DependencyStore | |
newEntityDependencies (array $paths=[], $asOf=null) | |
retrieve ( $type, $entity) | |
Get the currently tracked dependencies for an entity. | |
store ( $type, $entity, array $data, $ttl) | |
Set the currently tracked dependencies for an entity. | |
Additional Inherited Members | |
Protected Attributes inherited from Wikimedia\DependencyStore\DependencyStore | |
const | KEY_AS_OF = 'asOf' |
const | KEY_PATHS = 'paths' |
Track per-module file dependencies in the core module_deps table.
Wiki farms that are too big for maintenance/update.php, can clean up unneeded data for modules that no longer exist after a MW upgrade, by running maintenance/cleanupRemovedModules.php.
To force a rebuild and incurr a small penalty in browser cache churn, run maintenance/purgeModuleDeps.php instead.
Definition at line 41 of file SqlModuleDependencyStore.php.
Wikimedia\DependencyStore\SqlModuleDependencyStore::__construct | ( | ILoadBalancer | $lb | ) |
ILoadBalancer | $lb | Storage backend |
Definition at line 48 of file SqlModuleDependencyStore.php.
Wikimedia\DependencyStore\SqlModuleDependencyStore::remove | ( | $type, | |
$entities ) |
Delete the currently tracked dependencies for an entity or set of entities.
string | $type | Entity type |
string | string[] | $entities | Entity name(s) |
Reimplemented from Wikimedia\DependencyStore\DependencyStore.
Definition at line 117 of file SqlModuleDependencyStore.php.
Wikimedia\DependencyStore\SqlModuleDependencyStore::retrieveMulti | ( | $type, | |
array | $entities ) |
Get the currently tracked dependencies for a set of entities.
string | $type | Entity type |
string[] | $entities | Entity names |
Reimplemented from Wikimedia\DependencyStore\DependencyStore.
Definition at line 52 of file SqlModuleDependencyStore.php.
References Wikimedia\DependencyStore\DependencyStore\newEntityDependencies().
Wikimedia\DependencyStore\SqlModuleDependencyStore::storeMulti | ( | $type, | |
array | $dataByEntity, | ||
$ttl ) |
Set the currently tracked dependencies for a set of entities.
string | $type | Entity type |
array[] | $dataByEntity | Map of (entity => (paths: paths, asOf: UNIX timestamp or null)) |
int | $ttl | New time-to-live in seconds |
Reimplemented from Wikimedia\DependencyStore\DependencyStore.
Definition at line 71 of file SqlModuleDependencyStore.php.