Version Description
[2019.07.04] = * added cache purging support for the swift cache plugin * changed cache directory to the uploads directory for compatibility reasons * better cache purging checks
Download this release
Release Info
Developer | Alignak |
Plugin | Fast Velocity Minify |
Version | 2.6.7 |
Comparing to | |
See all releases |
Code changes from version 2.6.6 to 2.6.7
- fvm.php +1 -1
- inc/functions-cache.php +12 -12
- readme.txt +6 -1
fvm.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://fastvelocity.com
|
|
5 |
Description: Improve your speed score on GTmetrix, Pingdom Tools and Google PageSpeed Insights by merging and minifying CSS and JavaScript files into groups, compressing HTML and other speed optimizations.
|
6 |
Author: Raul Peixoto
|
7 |
Author URI: http://fastvelocity.com
|
8 |
-
Version: 2.6.
|
9 |
License: GPL2
|
10 |
|
11 |
------------------------------------------------------------------------
|
5 |
Description: Improve your speed score on GTmetrix, Pingdom Tools and Google PageSpeed Insights by merging and minifying CSS and JavaScript files into groups, compressing HTML and other speed optimizations.
|
6 |
Author: Raul Peixoto
|
7 |
Author URI: http://fastvelocity.com
|
8 |
+
Version: 2.6.7
|
9 |
License: GPL2
|
10 |
|
11 |
------------------------------------------------------------------------
|
inc/functions-cache.php
CHANGED
@@ -44,17 +44,8 @@ if($fvm_change_cache_path !== false && $fvm_change_cache_base !== false && strle
|
|
44 |
$upload['baseurl'] = trim($fvm_change_cache_base);
|
45 |
} else {
|
46 |
$up = wp_upload_dir(); # default
|
47 |
-
|
48 |
-
# upload path for multisite
|
49 |
$upload['basedir'] = rtrim($up['basedir']);
|
50 |
-
$upload['baseurl'] = rtrim($up['baseurl']);
|
51 |
-
|
52 |
-
# for single sites, change to the cache directory
|
53 |
-
if(basename($up['basedir']) == 'uploads') {
|
54 |
-
$upload['basedir'] = dirname($upload['basedir']);
|
55 |
-
$upload['baseurl'] = dirname($upload['baseurl']);
|
56 |
-
}
|
57 |
-
|
58 |
}
|
59 |
|
60 |
# last update or zero
|
@@ -152,7 +143,7 @@ function fvm_purge_old() {
|
|
152 |
$dir = $cachebaseparent.'/'.$d;
|
153 |
if(is_dir($dir)) {
|
154 |
fastvelocity_rrmdir($dir);
|
155 |
-
rmdir($dir);
|
156 |
}
|
157 |
}
|
158 |
}
|
@@ -233,7 +224,7 @@ function fastvelocity_rrmdir($path) {
|
|
233 |
if($f->isFile()){ unlink($f->getRealPath());
|
234 |
} else if(!$f->isDot() && $f->isDir()){
|
235 |
fastvelocity_rrmdir($f->getRealPath());
|
236 |
-
rmdir($f->getRealPath());
|
237 |
}
|
238 |
}
|
239 |
|
@@ -355,6 +346,15 @@ if (class_exists("Breeze_PurgeCache")) {
|
|
355 |
return __( '<div class="notice notice-info is-dismissible"><p>All caches from <strong>Breeze</strong> have also been purged.</p></div>');
|
356 |
}
|
357 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
358 |
}
|
359 |
|
360 |
|
44 |
$upload['baseurl'] = trim($fvm_change_cache_base);
|
45 |
} else {
|
46 |
$up = wp_upload_dir(); # default
|
|
|
|
|
47 |
$upload['basedir'] = rtrim($up['basedir']);
|
48 |
+
$upload['baseurl'] = rtrim($up['baseurl']);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
}
|
50 |
|
51 |
# last update or zero
|
143 |
$dir = $cachebaseparent.'/'.$d;
|
144 |
if(is_dir($dir)) {
|
145 |
fastvelocity_rrmdir($dir);
|
146 |
+
if(is_dir($dir)) { rmdir($dir); }
|
147 |
}
|
148 |
}
|
149 |
}
|
224 |
if($f->isFile()){ unlink($f->getRealPath());
|
225 |
} else if(!$f->isDot() && $f->isDir()){
|
226 |
fastvelocity_rrmdir($f->getRealPath());
|
227 |
+
if(is_dir($f->getRealPath())) { rmdir($f->getRealPath()); }
|
228 |
}
|
229 |
}
|
230 |
|
346 |
return __( '<div class="notice notice-info is-dismissible"><p>All caches from <strong>Breeze</strong> have also been purged.</p></div>');
|
347 |
}
|
348 |
|
349 |
+
|
350 |
+
# other lesser plugins
|
351 |
+
|
352 |
+
# swift
|
353 |
+
if (class_exists("Swift_Performance_Cache")) {
|
354 |
+
Swift_Performance_Cache::clear_all_cache();
|
355 |
+
return __( '<div class="notice notice-info is-dismissible"><p>All caches from <strong>Swift Performance</strong> have also been purged.</p></div>');
|
356 |
+
}
|
357 |
+
|
358 |
}
|
359 |
|
360 |
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: Alignak
|
|
3 |
Tags: PHP Minify, Lighthouse, GTmetrix, Pingdom, Pagespeed, CSS Merging, JS Merging, CSS Minification, JS Minification, Speed Optimization, HTML Minification, Performance, Optimization, Speed, Fast
|
4 |
Requires at least: 4.5
|
5 |
Requires PHP: 5.5
|
6 |
-
Stable tag: 2.6.
|
7 |
Tested up to: 5.2.2
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -198,6 +198,11 @@ Please backup your site before updating. Version 3.0 will have a major code rewr
|
|
198 |
|
199 |
== Changelog ==
|
200 |
|
|
|
|
|
|
|
|
|
|
|
201 |
= 2.6.6 [2019.06.20] =
|
202 |
* cache purging bug fixes
|
203 |
* php notice fixes
|
3 |
Tags: PHP Minify, Lighthouse, GTmetrix, Pingdom, Pagespeed, CSS Merging, JS Merging, CSS Minification, JS Minification, Speed Optimization, HTML Minification, Performance, Optimization, Speed, Fast
|
4 |
Requires at least: 4.5
|
5 |
Requires PHP: 5.5
|
6 |
+
Stable tag: 2.6.7
|
7 |
Tested up to: 5.2.2
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
198 |
|
199 |
== Changelog ==
|
200 |
|
201 |
+
= 2.6.7 [2019.07.04] =
|
202 |
+
* added cache purging support for the swift cache plugin
|
203 |
+
* changed cache directory to the uploads directory for compatibility reasons
|
204 |
+
* better cache purging checks
|
205 |
+
|
206 |
= 2.6.6 [2019.06.20] =
|
207 |
* cache purging bug fixes
|
208 |
* php notice fixes
|