Plugin Directory

Changeset 2531479


Ignore:
Timestamp:
05/14/2021 01:29:10 AM (5 years ago)
Author:
PhilMeadows
Message:

dont cache the cache haha

Location:
wp-roids/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-roids/trunk/CHANGELOG.md

    r2531472 r2531479  
     1= v4.0.2 =
     2
     3- **Fixed:** Caching already cached files is not clever :/
     4
    15= v4.0.1 =
    26
  • wp-roids/trunk/readme.txt

    r2531472 r2531479  
    33Contributors: philmeadows
    44Donate link: https://philmeadows.com/donate-paypal
    5 Tags: cache,performance,pagespeed,optimize
     5Tags: cache,performance,pagespeed,optimize,caching
    66Requires at least: 4.2
    77Tested up to: 5.7.2
    88Requires PHP: 5.6.0
    9 Stable tag: 4.0.1
     9Stable tag: 4.0.2
    1010License: GPLv3 or later
    1111License URI: https://www.gnu.org/licenses/gpl-3.0-standalone.html
    1212
    13 The fastest cache plugin for WordPress. FASTER than WP Super Cache, W3 Total Cache, WP Fastest Cache and many more...
     13The fastest caching plugin for WordPress. FASTER than WP Super Cache, W3 Total Cache, WP Fastest Cache and many more...
    1414
    1515== Description ==
     
    288288
    289289== Changelog ==
     290
     291= v4.0.2 =
     292
     293- **Fixed:** Caching already cached files is not clever :/
    290294
    291295= v4.0.1 =
  • wp-roids/trunk/wp-roids.php

    r2531472 r2531479  
    33Plugin Name: WP Roids
    44Description: The fastest caching plugin for WordPress!
    5 Version: 4.0.1
     5Version: 4.0.2
    66Author: Philip K. Meadows
    77Author URI: https://philmeadows.com
     
    310310                register_deactivation_hook( __FILE__, array( $this, 'deactivate' ) );
    311311               
    312                 $ignorePattern = "~(/wp-admin/|/wp-json/|/xmlrpc.php|/wp-(app|cron|login|register|mail).php|wp-.*.php|/feed/|favicon.ico|index.php|wp-comments-popup.php|wp-links-opml.php|wp-locations.php|sitemap(_index)?.xml|[a-z0-9_-]+-sitemap([0-9]+)?.xml)~";
     312                $ignorePattern = "~(/wp-admin/|/wp-json/|/wp-roids-cache/|/xmlrpc.php|/wp-(app|cron|login|register|mail).php|wp-.*.php|/feed/|favicon.ico|index.php|wp-comments-popup.php|wp-links-opml.php|wp-locations.php|sitemap(_index)?.xml|[a-z0-9_-]+-sitemap([0-9]+)?.xml)~";
    313313                $ignoreCheck = boolval( intval( preg_match( $ignorePattern, $this->uri ) ) );
    314314                if( $this->debug === TRUE ) $this->writeLog( 'Call to `' . $this->uri . '` $ignoreCheck said: ' . strtoupper( var_export( $ignoreCheck, TRUE ) ) );
     
    323323                    add_filter( 'script_loader_src', array( $this, 'removeScriptVersion' ), 15, 1 );
    324324                    add_filter( 'style_loader_src', array( $this, 'removeScriptVersion' ), 15, 1 );
    325                     add_action( 'wp_enqueue_scripts', array( $this, 'doAllAssets' )/*, PHP_INT_MAX - 2*/ );
    326                     add_action( 'wp_head', array( $this, 'cacheThisView')/*, PHP_INT_MAX - 1*/ );
    327                     add_action( 'wp', array( $this, 'htaccessFallback')/*, PHP_INT_MAX*/ );
     325                    add_action( 'wp_enqueue_scripts', array( $this, 'doAllAssets' ), PHP_INT_MAX - 2 );
     326                    add_action( 'wp_head', array( $this, 'cacheThisView'), PHP_INT_MAX - 1 );
     327                    add_action( 'wp', array( $this, 'htaccessFallback'), PHP_INT_MAX );
    328328                    add_action( 'wp_footer', array( $this, 'creditLink') );
    329329                }
Note: See TracChangeset for help on using the changeset viewer.