|
MediaWiki REL1_39
|
Track per-module file dependencies in the core module_deps table. More...


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. | |
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 119 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 $dbr, and 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.
References $blob.