class-rl-plugin.php in RabbitLoader 4.0.2, at inc/class-rl-plugin.php
| 1 | <?php |
| 2 | |
| 3 | if (!defined('ABSPATH')) { |
| 4 | exit; |
| 5 | } |
| 6 | |
| 7 | final class RL5_Plugin |
| 8 | { |
| 9 | private static $booted = false; |
| 10 | |
| 11 | public static function init() |
| 12 | { |
| 13 | if (self::$booted) { |
| 14 | return; |
| 15 | } |
| 16 | |
| 17 | self::$booted = true; |
| 18 | RL5_Admin::init(); |
| 19 | RL5_Heartbeat::init(); |
| 20 | |
| 21 | // Frontend runtime: serve optimized pages + capture misses. |
| 22 | // Safe path (template_redirect) — runs after WP loads. The |
| 23 | // advanced-cache.php early-serve is a later optimization. |
| 24 | if ( ! is_admin() ) { |
| 25 | RL5_Runtime::hooks(); |
| 26 | } |
| 27 | } |
| 28 | } |
| 29 |