diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ef04e44..d1907c54 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,8 @@ All notable changes to this project will be documented in this file. This projec ## unreleased +Requires PHP 5.6 and WordPress 4.7 or above + * Enhance: adjust styling for setup instructions (#215, props timse201) diff --git a/inc/class-cachify.php b/inc/class-cachify.php index 6f9d1745..70ae1ab5 100644 --- a/inc/class-cachify.php +++ b/inc/class-cachify.php @@ -1392,7 +1392,14 @@ public static function set_cache( $data ) { * @param string $cache_hash The cache hash. * @param int $cache_expires Cache validity period. */ - $should_cache = apply_filters( 'cachify_store_item', true, $data, self::$method, self::_cache_hash(), self::_cache_expires() ); + $should_cache = apply_filters( + 'cachify_store_item', + 200 === http_response_code(), + $data, + self::$method, + self::_cache_hash(), + self::_cache_expires() + ); /* Save? */ if ( $should_cache ) { diff --git a/phpcs.xml b/phpcs.xml index be0ffbf5..750725cb 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -20,7 +20,7 @@ vendor/* - + @@ -29,6 +29,6 @@ - + diff --git a/readme.txt b/readme.txt index 3cbc92e5..c027032b 100644 --- a/readme.txt +++ b/readme.txt @@ -2,9 +2,9 @@ * Contributors: pluginkollektiv * Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=TD4AMD2D8EMZW * Tags: acceleration, cache, caching, minimize, performance, apc, disk, hdd, memcached, compression, minify, speed -* Requires at least: 4.4 -* Tested up to: 5.8 -* Requires PHP: 5.2.4 +* Requires at least: 4.7 +* Tested up to: 5.9 +* Requires PHP: 5.6 * Stable tag: 2.3.2 * License: GPLv2 or later * License URI: http://www.gnu.org/licenses/gpl-2.0.html