Plugin Directory

Changeset 2166349


Ignore:
Timestamp:
10/01/2019 12:47:10 PM (6 years ago)
Author:
PhilMeadows
Message:

Fixed issue - logic fubar in deciding to save static HTML file

Location:
wp-roids/trunk
Files:
3 edited

Legend:

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

    r2066599 r2166349  
     1= v3.2.0 =
     2
     3- **Fixed:** Logic condition was preventing some storing of HTML files
     4
    15= v3.1.1 =
    26
  • wp-roids/trunk/readme.txt

    r2066599 r2166349  
    11=== WP Roids ===
    2 
    3 Stable tag: 3.1.1
    4 Requires at least: 4.2
    5 Tested up to: 5.1.1
    6 Requires PHP: 5.4.0
    7 
    8 License: GPLv3 or later
    9 License URI: https://www.gnu.org/licenses/gpl-3.0-standalone.html
    102
    113Contributors: philmeadows
    124Donate link: https://philmeadows.com/say-thank-you/
    135Tags: cache,caching,minify,page speed,optimize,performance,compression
    14 
    15 Best caching, minification and compression for WordPress. Tested FASTER than: WP Super Cache, W3 Total Cache, WP Fastest Cache, & more!
     6Requires at least: 4.2
     7Tested up to: 5.2.3
     8Requires PHP: 5.4.0
     9Stable tag: 3.2.0
     10License: GPLv3 or later
     11License URI: https://www.gnu.org/licenses/gpl-3.0-standalone.html
     12
     13Best caching, minification and compression for WordPress. Tested FASTER than: WP Super Cache, W3 Total Cache, WP Fastest Cache and many others!
    1614
    1715== Description ==
     
    2422- Minifies JavaScript and generates single compiled JavaScript files per page
    2523- Defers loading of generated JavaScript file
    26 - Compiles WordPress® Core jQuery and jQuery-migrate files into one file
     24- Compiles WordPress Core jQuery and jQuery-migrate files into one file
    2725- Compiles and minifies CSS and JavaScript loaded from external CDN sources
    2826- Compresses JPEG and PNG images hosted in your site's Media Library
     
    4543
    46441. Switch your site's theme to "Twenty Nineteen" (or one of the other "Twenty..." Themes). If it then works, you have a moody theme
    47 2. If still broken, go to the WordPress® Plugins page and disable all Plugins (except WP Roids, obviously). If WP Roids starts to work, we have a plugin conflit
     452. If still broken, go to the WordPress Plugins page and disable all Plugins (except WP Roids, obviously). If WP Roids starts to work, we have a plugin conflit
    48463. Reactivate each plugin one by one and refresh your home page each time time until it breaks
    49474. If _still_ broken after the above step, go to the Settings tab and try disabling JS optimisation for the Plugin which triggered an error in the previous step - this is done in the second section "Plugins JavaScript"
     
    7270= Software Requirements =
    7371
    74 In addition to the [WordPress Requirements](http://wordpress.org/about/requirements/), WP Roids requires the following:
     72In addition to the [WordPress Requirements](https://wordpress.org/about/requirements/), WP Roids requires the following:
    7573
    7674-   **`.htaccess` file to be writable**
     
    8886**NOTE:** WP Roids requires the `.htaccess` file to have permissions set to 644 at time of activation. Some security plugins (quite rightly) change the permissions to disable editing. Please temporarily disable this functionality for a moment whilst activating WP Roids.
    8987
    90 The quickest and easiest way to install is via the `Plugins > Add New` feature within WordPress®. But if you must, manual installation instructions follow...
     88The quickest and easiest way to install is via the `Plugins > Add New` feature within WordPress. But if you must, manual installation instructions follow...
    9189
    92901. Download and unzip the latest release zip file.
     
    195193= Credits / Additional Acknowledgments =
    196194
    197 * Software designed for WordPress®
     195* Software designed for WordPress
    198196    - GPL License <https://codex.wordpress.org/GPL>
    199     - WordPress® <https://wordpress.org>
     197    - WordPress <https://wordpress.org>
    200198* Photograph of Lance Armstrong
    201199    - Source: <http://newsactivist.com/en/articles/604-103-lf/lance-armstrong-cheater-0>
     
    204202== Upgrade Notice ==
    205203
     204= v3.2.0 =
     205
     206Logic condition was preventing some storing of HTML files
     207
    206208= v3.1.1 =
    207209
     
    290292== Changelog ==
    291293
    292 = v3.1.0 =
    293 
    294 - **Fixed:** Image compression sometimes causing Server Errors
    295 
    296 - **Improved:** Image compression levels editable in Settings
     294= v3.2.0 =
     295
     296- **Fixed:** Logic condition was preventing some storing of HTML files
  • wp-roids/trunk/wp-roids.php

    r2066599 r2166349  
    33Plugin Name: WP Roids
    44Description: Fast AF Caching for WordPress!
    5 Version: 3.1.1
     5Version: 3.2.0
    66Author: Philip K. Meadows
    77Author URI: https://philmeadows.com
     
    712712                    && ! post_password_required()
    713713                    && ( is_singular() || is_archive() )
    714                     && ( defined( 'DONOTCACHEPAGE' ) && intval( DONOTCACHEPAGE ) !== 1 )
     714                    && ( defined( 'DONOTCACHEPAGE' ) !== TRUE && intval( DONOTCACHEPAGE ) !== 1 )
    715715                    && ! is_404()
    716716                    && get_post_status( $post->ID ) === 'publish'
     
    10881088                if( ( ! $this->isViablePost( $post ) && ! $_POST ) || strpos( $wp_query->request, 'SQL_CALC_FOUND_ROWS' ) !== FALSE )
    10891089                {
    1090                     $html .= "\n" . '<!--' . "\n" . 'Minified web page generated at ' . gmdate("M d Y H:i:s") . ' GMT by ' . $this->pluginName . "\n" . 'This page is NOT a cached static HTML file for at least one of a few possible reasons:' . "\n\t" . ' - It is not a WordPress Page/Post' . "\n\t" . ' - It is an Archive (list of Posts) Page' . "\n\t" . ' - You are logged in to this WordPress site' . "\n\t" . ' - It has received HTTP POST data' . "\n\t" . ' - It is a particular WooCommerce page [Cart/Checkout/My Account]' . "\n" . '-->';
     1090                    $html .= "\n" . '<!--' . "\n" . 'Minified web page generated at ' . gmdate("M d Y H:i:s") . ' GMT by ' . $this->pluginName . "\n" . 'This page is NOT a cached static HTML file for at least one of a few possible reasons:' . "\n\t" . ' - It is not a WordPress Page/Post' . "\n\t" . ' - It is marked `DONOTCACHEPAGE`' . "\n\t" . ' - It is an Archive (list of Posts) Page' . "\n\t" . ' - You are logged in to this WordPress site' . "\n\t" . ' - It has received HTTP POST data' . "\n\t" . ' - It is a particular WooCommerce page [Cart/Checkout/My Account]' . "\n" . '-->';
    10911091                }
    10921092            } // END $this->settingMinifyHtml === TRUE
Note: See TracChangeset for help on using the changeset viewer.