Plugin Directory

Changeset 3012466


Ignore:
Timestamp:
12/20/2023 01:15:04 PM (2 years ago)
Author:
Lugat
Message:

added conditionals tags which should not be cached

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

Legend:

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

    r2988662 r3012466  
    55   * Plugin URI: https://wordpress.org/plugins/jixn-fast-cache/
    66   * Description: Blazing fast full page cache.
    7    * Version: 0.7.5
     7   * Version: 0.7.6
    88   * Author: Jinx Digital <hello@jinx-digital.com>
    99   * Author URI: http://jinx-digital.com
  • jinx-fast-cache/trunk/readme.txt

    r2980508 r3012466  
    33Tags: cache, html, files, fullpage, pagecache, filecache, rewrite, htaccess
    44Requires at least: 5.0
    5 Tested up to: 6.3.2
     5Tested up to: 6.4.2
    66Requires PHP: 8.0
    77Stable tag: 0.3.6
  • jinx-fast-cache/trunk/src/Front.php

    r2988662 r3012466  
    2929          $disabled = null;
    3030         
    31           if (is_404()) {           
     31          // disable caching if
     32          // * in maintenance mode
     33          // * admin bar is showing
     34          // * is preview
     35          if (wp_is_maintenance_mode() || is_admin_bar_showing() || is_preview()) {
     36            $disabled = true;
     37          } elseif (is_404()) {
    3238            $disabled = apply_filters('jinx_fast_cache_ignore_404', true);
    3339          } else {
     
    4551          }
    4652         
    47           if (is_bool($disabled)) {
     53          if (is_bool($disabled)) {   
    4854            return !$disabled;
    4955          }
Note: See TracChangeset for help on using the changeset viewer.