Plugin Directory

Changeset 3435954


Ignore:
Timestamp:
01/09/2026 01:57:00 PM (3 months ago)
Author:
Lugat
Message:

Removed fallback cache loader

Location:
jinx-fast-cache/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • jinx-fast-cache/trunk/index.php

    r3435729 r3435954  
    55   * Plugin URI: https://wordpress.org/plugins/jixn-fast-cache/
    66   * 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.4
     7   * Version: 0.9.5
    88   * Author: Jinx Digital <hello@jinx-digital.com>
    99   * Author URI: http://jinx-digital.com
     
    2121  require_once __DIR__.'/src/Front.php';
    2222  require_once __DIR__.'/src/GarbageCollector.php';
    23  
     23
    2424  require_once ABSPATH.'wp-admin/includes/upgrade.php';
    2525  require_once ABSPATH.'wp-admin/includes/class-wp-filesystem-base.php';
    2626  require_once ABSPATH.'wp-admin/includes/class-wp-filesystem-direct.php';
    27  
     27
    2828  register_activation_hook(__FILE__, ['Jinx\FastCache\Plugin', 'activate']);
    2929  register_deactivation_hook( __FILE__, ['Jinx\FastCache\Plugin', 'deactivate']);
     
    3131
    3232  add_action('plugins_loaded', ['Jinx\FastCache\Plugin', 'bootstrap'], PHP_INT_MIN);
    33   add_action('plugins_loaded', ['Jinx\FastCache\Front', 'loadCache'], PHP_INT_MIN+1);
    3433  add_action('admin_init', ['Jinx\FastCache\Admin', 'init']);
    3534  add_action('init', ['Jinx\FastCache\Settings', 'init']);
  • jinx-fast-cache/trunk/src/Front.php

    r3435242 r3435954  
    1414    // Duration of cache (ttl)
    1515    public static $ttl = null;
    16    
    17     /**
    18      * Fallback if htaccess is not working
    19      */
    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     }
    3616
    3717    /**
Note: See TracChangeset for help on using the changeset viewer.