Fast Velocity Minify - Version 2.2.5

Version Description

[2017.12.18] = * fixed a fatal error reported on the support forum

Download this release

Release Info

Developer Alignak
Plugin Icon 128x128 Fast Velocity Minify
Version 2.2.5
Comparing to
See all releases

Code changes from version 2.2.4 to 2.2.5

Files changed (3) hide show
  1. fvm.php +2 -2
  2. inc/functions.php +2 -1
  3. readme.txt +12 -9
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.2.4
9
  License: GPL2
10
 
11
  ------------------------------------------------------------------------
@@ -1245,7 +1245,7 @@ if(!$skip_google_fonts && count($google_fonts) > 0) {
1245
  $tkey = 'fvm-cache-'.$ctime.hash('adler32', $concat_google_fonts);
1246
  $newcode = false; $newcode = get_transient($tkey);
1247
  if ( $newcode === false) {
1248
- $res = fvm_download_and_cache($concat_google_fonts, $tkey, null, $disable_minification, 'css');
1249
  if(is_array($res)) { $newcode = $res['code']; }
1250
  }
1251
 
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.2.5
9
  License: GPL2
10
 
11
  ------------------------------------------------------------------------
1245
  $tkey = 'fvm-cache-'.$ctime.hash('adler32', $concat_google_fonts);
1246
  $newcode = false; $newcode = get_transient($tkey);
1247
  if ( $newcode === false) {
1248
+ $res = fvm_download_and_cache($concat_google_fonts, $tkey, null, $disable_css_minification, 'css');
1249
  if(is_array($res)) { $newcode = $res['code']; }
1250
  }
1251
 
inc/functions.php CHANGED
@@ -25,7 +25,8 @@ function fvm_cachepath() {
25
  # custom directory
26
  $fvm_change_cache_path = get_option('fastvelocity_min_change_cache_path');
27
  $fvm_change_cache_base = get_option('fastvelocity_min_change_cache_base_url');
28
- if(!empty(trim($fvm_change_cache_path)) && $fvm_change_cache_path !== false && !empty(trim($fvm_change_cache_base)) && $fvm_change_cache_base !== false) {
 
29
  $upload['basedir'] = trim($fvm_change_cache_path);
30
  $upload['baseurl'] = trim($fvm_change_cache_base);
31
  } else {
25
  # custom directory
26
  $fvm_change_cache_path = get_option('fastvelocity_min_change_cache_path');
27
  $fvm_change_cache_base = get_option('fastvelocity_min_change_cache_base_url');
28
+ $upload = array();
29
+ if($fvm_change_cache_path !== false && $fvm_change_cache_base !== false && strlen($fvm_change_cache_path) > 1) {
30
  $upload['basedir'] = trim($fvm_change_cache_path);
31
  $upload['baseurl'] = trim($fvm_change_cache_base);
32
  } else {
readme.txt CHANGED
@@ -1,8 +1,8 @@
1
  === Fast Velocity Minify ===
2
  Contributors: Alignak
3
- Tags: merge, combine, concatenate, PHP Minify, YUI Compressor, CSS, javascript, JS, minification, minify, optimization, optimize, stylesheet, aggregate, cache, CSS, html, minimize, pagespeed, performance, speed, GTmetrix, pingdom
4
  Requires at least: 4.5
5
- Stable tag: 2.2.4
6
  Tested up to: 4.9.1
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -83,15 +83,15 @@ The ignore list is working but you need to remove query vars from static urls (e
83
  ...
84
 
85
 
86
- = Why are there several or a lot's of js and css files listed on the status page? =
87
 
88
- Those files are created whenever a new set of javascript or css files are found on your front end and it's due to your plugins and themes needing different js and css files per page, post, category, tag, homepage or even custom post types. If you always load the exact same css and javascript in every page on your site, you won't see as many files. Likewise, if you have some dynamic url for css or js that always changes in each pageview, you should add it to the ignore list.
89
 
90
  ...
91
 
92
  = Can I update other plugins and themes? =
93
 
94
- Yes, but it's recommended that you purge the cached files (from the plugin status page) in order for the merging and minification cache files to be regenerated. The plugin will try to automatically purge some popular cache plugins. We still recommend, however, that you purge all caches on your cache plugin (whatever you use) "after" purging Fast Velocity Minify cache.
95
 
96
  ...
97
 
@@ -104,7 +104,7 @@ The automatic purge is active for the following plugins and hosting: W3 Total Ca
104
 
105
  = Is it resource intensive, or will it use too much CPU on my shared hosting plan? =
106
 
107
- No it's not. The generation of the minified files is done only once per group of CSS or JS files (and only if needed). All pages that request the same group of CSS or JS files will also make use of that cache file. The cache file will be served from the uploads directory as a static file and there is no PHP involved.
108
 
109
  ...
110
 
@@ -116,13 +116,13 @@ Yes, it generates a new cache file for every different set of JS and CSS require
116
 
117
  = Is it compatible with Adsense and other ad networks? =
118
 
119
- The plugin is compatible with any add network but also depends on how you're loading the ads into the site. We only merge and minify css and javascript files enqueued in the header and footer which would exclude any ads. If you're using a plugin that uses JS to insert the ads on the page, there could be issues. Please report on the support forum if you found such case.
120
 
121
  ...
122
 
123
  = After installing, why did my site became slow? =
124
 
125
- Please note that the cache regeration happen's once per page or if the requested CSS + JS files change. If you need the same set of CSS and JS files in every page, the cache file will only be generated once and reused for all other pages. If you have a CSS or JS that uses a different name on every pageview, try to add it to the ignore list by using wildcards.
126
 
127
  ...
128
 
@@ -210,7 +210,7 @@ This hides all optimization from editors and administrators, as long as they are
210
  = Is it compatible with Visual Composer and other editors ? =
211
 
212
  Visual composer, adds some style tags into your header and/or footer, however they simply print the code and don't use the wordpress `wp_add_inline_style` hook.
213
- This means, we cannot easily capture that csa code and therefore it's left out of all the merging by Fast Velocity Minify.
214
  You may have all else merged and minified correctly, however if that generated visual composer css code is important, those styles might be overwritten by the merged file, or that code can also overwrite the rules inside the css generated file.
215
  If you experience some styles missing, this could be the cause... but try the ignore list first.
216
 
@@ -274,6 +274,9 @@ Note: Kindly re-save all options and purge all caches (the plugin cache as well
274
 
275
  == Changelog ==
276
 
 
 
 
277
  = 2.2.4 [2017.12.17] =
278
  * added custom cache directory and url support
279
  * cleaned up some old unused code
1
  === Fast Velocity Minify ===
2
  Contributors: Alignak
3
+ Tags: merge, combine, concatenate, autoptimize, PHP Minify, YUI Compressor, CSS, javascript, JS, minification, minify, optimization, optimize, stylesheet, aggregate, cache, CSS, html, minimize, pagespeed, performance, speed, GTmetrix, pingdom
4
  Requires at least: 4.5
5
+ Stable tag: 2.2.5
6
  Tested up to: 4.9.1
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
83
  ...
84
 
85
 
86
+ = Why are there several or lot's of JS and CSS files listed on the status page? =
87
 
88
+ Those files are static files created whenever a new set of javascript or css files are found on your front end. Different pages may need different js and css files per page, post, category, tag, homepage or even custom post types. If you always load the exact same css and javascript in every page on your site, you won't see as many files. Likewise, if you have some dynamic url for css or js that always changes in each pageview, you should add it to the ignore list (else it will generate a new file everytime).
89
 
90
  ...
91
 
92
  = Can I update other plugins and themes? =
93
 
94
+ Yes, but it's recommended that you purge the cached files (from the plugin status page) in order for the merging and minification cache files to be regenerated and for you to be sure the updates went smoothly. The plugin will try to automatically purge some popular cache plugins, however we still recommend that you purge all caches on your cache plugin /server (whatever you use) "after" purging Fast Velocity Minify cache.
95
 
96
  ...
97
 
104
 
105
  = Is it resource intensive, or will it use too much CPU on my shared hosting plan? =
106
 
107
+ No it's not. The generation of the minified files is done only once per group of CSS or JS files (and only if needed). All pages that request the same group of CSS or JS files will also make use of that cache file. The cache file will be served as a static file and there is no PHP involved.
108
 
109
  ...
110
 
116
 
117
  = Is it compatible with Adsense and other ad networks? =
118
 
119
+ The plugin is compatible with any add network but also depends on how you're loading the ads into the site. We only merge and minify css and javascript files enqueued in the header and footer that match your own domain name... which would exclude any external ads. If you're using a plugin that uses JS to insert the ads on the page, there could be issues. Please report on the support forum if you found such case.
120
 
121
  ...
122
 
123
  = After installing, why did my site became slow? =
124
 
125
+ Please note that the cache regeration happen's once per page or if the requested CSS + JS files change. If you need the same set of CSS and JS files in every page, the cache file will only be generated once and reused for all other pages. If you have a CSS or JS that is generated with php and uses a time based query string, that always generates a new files on every pageview. Try to add it to the ignore list by using wildcards.
126
 
127
  ...
128
 
210
  = Is it compatible with Visual Composer and other editors ? =
211
 
212
  Visual composer, adds some style tags into your header and/or footer, however they simply print the code and don't use the wordpress `wp_add_inline_style` hook.
213
+ This means, we cannot easily capture that css code and therefore it's left out of all the merging by Fast Velocity Minify.
214
  You may have all else merged and minified correctly, however if that generated visual composer css code is important, those styles might be overwritten by the merged file, or that code can also overwrite the rules inside the css generated file.
215
  If you experience some styles missing, this could be the cause... but try the ignore list first.
216
 
274
 
275
  == Changelog ==
276
 
277
+ = 2.2.5 [2017.12.18] =
278
+ * fixed a fatal error reported on the support forum
279
+
280
  = 2.2.4 [2017.12.17] =
281
  * added custom cache directory and url support
282
  * cleaned up some old unused code