| 1 |
<?php |
| 2 |
|
| 3 |
if (!defined('ABSPATH')) { |
| 4 |
exit; |
| 5 |
} |
| 6 |
|
| 7 |
/** |
| 8 |
* Hits-table rebuild policy and create surface: records the staleness |
| 9 |
* signal, answers "needs rebuild?" and "last updated when?", and creates |
| 10 |
* the hits rollup table on demand. |
| 11 |
*/ |
| 12 |
interface ABJ_404_Solution_LogHitsRebuildInterface { |
| 13 |
|
| 14 |
/** @return void */ |
| 15 |
public function recordLogsHitsRollupStalenessSignal(): void; |
| 16 |
|
| 17 |
/** @return bool */ |
| 18 |
public function hitsTableNeedsRebuild(); |
| 19 |
|
| 20 |
/** |
| 21 |
* @return int|null Unix timestamp of last update, or null if table doesn't exist |
| 22 |
*/ |
| 23 |
public function getLogsHitsTableLastUpdated(); |
| 24 |
|
| 25 |
/** @return bool */ |
| 26 |
public function createRedirectsForViewHitsTable(): bool; |
| 27 |
} |
| 28 |
|