Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Extension\CommunityConfiguration\Store; |
4 | |
5 | /** |
6 | * @note Keep in sync with CustomReadConstantsTrait. This is only separate, because constants can |
7 | * be defined within traits since PHP 8.2. |
8 | * @todo: Move to CustomReadConstantsTrait once we run on PHP8.2. |
9 | */ |
10 | interface ICustomReadConstants { |
11 | /** |
12 | * @var int Bypass any sort of cache, but read from replica DB. |
13 | * |
14 | * This is a non-standard flag that's not exposed to classes WikiPageConfigLoader |
15 | * depends on to read wiki pages. |
16 | * |
17 | * Can be used together with standard IDBAccessObject flags. |
18 | * |
19 | * @hack 2**20 is a high power of two that's unlikely to be ever added to IDBAccessObject |
20 | * flags. |
21 | */ |
22 | public const READ_UNCACHED = 2 ** 20; |
23 | } |