# 404-solution/trunk/includes/logs/LogHitsRebuildInterface.php

404 Solution, version trunk. 28 lines.

- Page: https://pluginprobe.com/plugins/404-solution/trunk/code/includes/logs/LogHitsRebuildInterface.php
- Raw: https://pluginprobe.com/plugins/404-solution/trunk/raw/includes/logs/LogHitsRebuildInterface.php
- Modified: 2026-06-23T05:55:18+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/404-solution/trunk/code/includes/logs/LogHitsRebuildInterface.php#L10-L20`.

```php
<?php

if (!defined('ABSPATH')) {
    exit;
}

/**
 * Hits-table rebuild policy and create surface: records the staleness
 * signal, answers "needs rebuild?" and "last updated when?", and creates
 * the hits rollup table on demand.
 */
interface ABJ_404_Solution_LogHitsRebuildInterface {

    /** @return void */
    public function recordLogsHitsRollupStalenessSignal(): void;

    /** @return bool */
    public function hitsTableNeedsRebuild();

    /**
     * @return int|null Unix timestamp of last update, or null if table doesn't exist
     */
    public function getLogsHitsTableLastUpdated();

    /** @return bool */
    public function createRedirectsForViewHitsTable(): bool;
}

```
