aboutsummaryrefslogtreecommitdiffstats
path: root/includes/page/PageStoreRecord.php
Commit message (Collapse)AuthorAgeFilesLines
* Reorg: Move MWTimestamp to MediaWiki\UtilsAmir Sarabadani2023-08-191-1/+1
| | | | | Bug: T321882 Change-Id: I48c10343295c4eb3d9ef8037343b0070e928f040
* Doc: link mw:Manual:Modeling_pagesdaniel2023-07-101-0/+2
| | | | | | | | | | The various classes and interfaces for representing titles, links, and pages can be a bit confusing. Link to a wiki page that provides an overview: https://www.mediawiki.org/wiki/Manual:Modeling_pages Change-Id: I04fcf53bd15ca50a2bbb8693482a99ab651a4b30
* Various doc fixes about false and null on method arguments/return typesUmherirrender2022-11-031-2/+2
| | | | | | Doc-only changes Change-Id: Ice974b3ba41708859dfe646e94b31c5ebbf26410
* page: Improve class documentation briefsTimo Tijhof2022-04-121-0/+1
| | | | | | | | | | | | | * Indicate whether a class is a service (to be found via MediaWikiServices) or a lower-level class for certain backend logic. * Indicate how to create / where to get instances of non-service classes, e.g. point to the relevant service. * Remove copy-pasta text in file docblock that is unrelated, and incorporate any relevant text into the class docblock instead. Change-Id: Ia3b9b8c22da4d7160c5e14ae6a6a7c9dca30e9db
* Title: use PageStore instead of LinkCachedaniel2021-11-021-2/+19
| | | | | | | | | | | | | | | | | | | | | | | This causes Title to no longer look up fields in the database individually, but use LinkCache instead to load an entire row from the page table at once. This patch also causes Title to use in-process caching for some getters that did not use caching before, such as isNewPage() and getTouched(). These methods do not appear to be used on critical code paths that involve database updates. Note that getTouched() used to take an options $db parametr. This appears to be unused, and has been deprecated in favor of a $flags parameter, for consistency with other getters on the class. DEPLOY: Risky! This re-implements the internal caching logic of Title and slightly modifies caching semantics in some cases. This may have unforeseen consequences. Bug: T285389 Depends-On: I103b9e1d2bf594bfc1b0ea12b980dd20bb911c3a Change-Id: I2df81df7186025e001520f24fd498623c7184772
* PageStore: Use LinkCachedaniel2021-09-011-16/+20
| | | | | | | | | | | | | This makes the data stored by LinkCache compatible with PageStoreRecord, so we can use LinkCache inside PageStore. This causes PageStore to make use of local caching as well as WANObjectCache. Note that getPageById() does not yet benefit from cache, but does populate the cache. Bug: T278940 Change-Id: Icc27a0d9299a3e4ce45521daef87ad06ec06f064
* PageRecord: make language optionaldaniel2021-04-081-5/+5
| | | | | | | | | | | | Title::getPageLanguage has complex logic to determine the effictive language of the page. PageRecord is a storage layer primitive and should not haveknowledge of such logic, nor should PageStore. The effective content language of a page needs to be determined programmatically, see discussion on the ticket. Bug: T278591 Change-Id: Ic26f6f7690499b3dd87982e3822881fd473cfd68
* Introduce PageRecord interfacedaniel2021-03-221-0/+122
PageRecord is intended as a lightweight alternative to WikiPage, similar to RevisionRecord. Bug: T272421 Bug: T272422 Depends-On: Ia34cc8fa795b6b27832982fc22fa237ee36339b4 Depends-On: I39a984c9f3132f755f7d8984b789d05ad080d7b4 Change-Id: Ib3c9b22e0c0b7c97e6c230f2fecf0663b4c68cc6