Changeset 3435954
- Timestamp:
- 01/09/2026 01:57:00 PM (3 months ago)
- Location:
- jinx-fast-cache/trunk
- Files:
-
- 2 edited
-
index.php (modified) (3 diffs)
-
src/Front.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
jinx-fast-cache/trunk/index.php
r3435729 r3435954 5 5 * Plugin URI: https://wordpress.org/plugins/jixn-fast-cache/ 6 6 * Description: Blazing fast full-page caching for WordPress. Jinx Fast-Cache serves static HTML files, bypassing PHP and database overhead entirely. 7 * Version: 0.9. 47 * Version: 0.9.5 8 8 * Author: Jinx Digital <hello@jinx-digital.com> 9 9 * Author URI: http://jinx-digital.com … … 21 21 require_once __DIR__.'/src/Front.php'; 22 22 require_once __DIR__.'/src/GarbageCollector.php'; 23 23 24 24 require_once ABSPATH.'wp-admin/includes/upgrade.php'; 25 25 require_once ABSPATH.'wp-admin/includes/class-wp-filesystem-base.php'; 26 26 require_once ABSPATH.'wp-admin/includes/class-wp-filesystem-direct.php'; 27 27 28 28 register_activation_hook(__FILE__, ['Jinx\FastCache\Plugin', 'activate']); 29 29 register_deactivation_hook( __FILE__, ['Jinx\FastCache\Plugin', 'deactivate']); … … 31 31 32 32 add_action('plugins_loaded', ['Jinx\FastCache\Plugin', 'bootstrap'], PHP_INT_MIN); 33 add_action('plugins_loaded', ['Jinx\FastCache\Front', 'loadCache'], PHP_INT_MIN+1);34 33 add_action('admin_init', ['Jinx\FastCache\Admin', 'init']); 35 34 add_action('init', ['Jinx\FastCache\Settings', 'init']); -
jinx-fast-cache/trunk/src/Front.php
r3435242 r3435954 14 14 // Duration of cache (ttl) 15 15 public static $ttl = null; 16 17 /**18 * Fallback if htaccess is not working19 */20 public static function loadCache()21 {22 23 if (apply_filters('jinx_fast_cache_active', false)) {24 25 $files = Helper::getCacheFiles(Helper::getUrl());26 if (file_exists($files['html'])) {27 28 readfile($files['html']);29 exit;30 31 }32 33 }34 35 }36 16 37 17 /**
Note: See TracChangeset
for help on using the changeset viewer.