WP Fastest Cache - Version 0.9.0.7

Version Description

  • [FEATURE] to add "exclude sources" feature for CDN
  • to remove the DNS prefetch of s.w.org when emoji is disabled
  • [FEATURE] to add wpfc_css_content filter [Details]
  • to fix scandir(): (errno 2): No such file or directory on js-utilities.php line 238
Download this release

Release Info

Developer emrevona
Plugin Icon 128x128 WP Fastest Cache
Version 0.9.0.7
Comparing to
See all releases

Code changes from version 0.9.0.6 to 0.9.0.7

inc/admin.php CHANGED
@@ -1448,7 +1448,7 @@
1448
  <?php settings_fields( 'wpfc-group' ); ?>
1449
  <input type="hidden" value="deleteCache" name="wpFastestCachePage">
1450
  <div class="questionCon qsubmit left">
1451
- <div class="submit"><input type="submit" value="<?php _e("Delete Cache", "wp-fastest-cache"); ?>" class="button-primary"></div>
1452
  </div>
1453
  <div class="questionCon right">
1454
  <div style="padding-left:11px;">
@@ -1663,9 +1663,9 @@
1663
  $premium_buy_link = "https://www.wpfastestcache.com/#buy";
1664
  $premium_price = "$49.99";
1665
 
1666
- if(in_array(get_bloginfo('language'), array("tr-TR", "tr"))){
1667
- $premium_price = "150TL";
1668
- }
1669
  }
1670
 
1671
  ?>
1448
  <?php settings_fields( 'wpfc-group' ); ?>
1449
  <input type="hidden" value="deleteCache" name="wpFastestCachePage">
1450
  <div class="questionCon qsubmit left">
1451
+ <div class="submit"><input type="submit" value="<?php _e("Clear All Cache", "wp-fastest-cache"); ?>" class="button-primary"></div>
1452
  </div>
1453
  <div class="questionCon right">
1454
  <div style="padding-left:11px;">
1663
  $premium_buy_link = "https://www.wpfastestcache.com/#buy";
1664
  $premium_price = "$49.99";
1665
 
1666
+ // if(in_array(get_bloginfo('language'), array("tr-TR", "tr"))){
1667
+ // $premium_price = "150TL";
1668
+ // }
1669
  }
1670
 
1671
  ?>
inc/cache.php CHANGED
@@ -44,6 +44,8 @@
44
  remove_action('wp_print_styles', 'print_emoji_styles');
45
  remove_action('admin_print_styles', 'print_emoji_styles');
46
  remove_filter('wp_mail', 'wp_staticize_emoji_for_email');
 
 
47
  }
48
 
49
  public function detect_current_page_type(){
@@ -260,16 +262,6 @@
260
  }
261
  }
262
 
263
- // to check woocommerce_items_in_cart
264
- foreach ((array)$_COOKIE as $cookie_key => $cookie_value){
265
- //if(preg_match("/^wp\_woocommerce\_session/", $cookie_key)){
266
- if(preg_match("/^woocommerce\_items\_in\_cart/", $cookie_key)){
267
- ob_start(array($this, "cdn_rewrite"));
268
-
269
- return 0;
270
- }
271
- }
272
-
273
  if(isset($_COOKIE) && isset($_COOKIE['safirmobilswitcher'])){
274
  ob_start(array($this, "cdn_rewrite"));
275
 
44
  remove_action('wp_print_styles', 'print_emoji_styles');
45
  remove_action('admin_print_styles', 'print_emoji_styles');
46
  remove_filter('wp_mail', 'wp_staticize_emoji_for_email');
47
+ // remove the DNS prefetch
48
+ add_filter('emoji_svg_url', '__return_false');
49
  }
50
 
51
  public function detect_current_page_type(){
262
  }
263
  }
264
 
 
 
 
 
 
 
 
 
 
 
265
  if(isset($_COOKIE) && isset($_COOKIE['safirmobilswitcher'])){
266
  ob_start(array($this, "cdn_rewrite"));
267
 
inc/css-utilities.php CHANGED
@@ -108,6 +108,9 @@
108
  $combined_link = '<link rel="stylesheet" type="text/css" href="'.$cssLink."/".$cssFiles[0].'" media="'.$group_value[0]["media"].'"/>';
109
 
110
  if($css_content = $this->wpfc->read_file($cssLink."/".$cssFiles[0])){
 
 
 
111
  $combined_link = $this->to_inline($combined_link, $css_content);
112
  }
113
  }
@@ -128,6 +131,8 @@
128
  if($cssFiles = @scandir($cachFilePath, 1)){
129
  $combined_link = '<link rel="stylesheet" type="text/css" href="'.$cssLink."/".$cssFiles[0].'" media="'.$group_value[0]["media"].'"/>';
130
 
 
 
131
  $combined_link = $this->to_inline($combined_link, $combined_css);
132
  }
133
  }
@@ -187,6 +192,10 @@
187
  $prefixLink = str_replace(array("http:", "https:"), "", $minifiedCss["url"]);
188
  $text = preg_replace("/href\=[\"\'][^\"\']+[\"\']/", "href='".$prefixLink."'", $text);
189
 
 
 
 
 
190
  $text = $this->to_inline($text, $minifiedCss["cssContent"]);
191
 
192
  $this->html = substr_replace($this->html, $text, $value["start"], ($value["end"] - $value["start"] + 1));
@@ -345,6 +354,11 @@
345
  if(is_dir($cachFilePath)){
346
  if($cssFiles = @scandir($cachFilePath, 1)){
347
  if($cssContent = $this->file_get_contents_curl($cssLink."/".$cssFiles[0])){
 
 
 
 
 
348
  return array("cachFilePath" => $cachFilePath, "cssContent" => $cssContent, "url" => $cssLink."/".$cssFiles[0], "realUrl" => $url);
349
  }else{
350
  return false;
@@ -361,6 +375,8 @@
361
 
362
  $cssContent = $this->fixPathsInCssContent($cssContent, $url);
363
 
 
 
364
  if(isset($this->wpfc->options->wpFastestCacheMinifyCssPowerFul) && $this->wpfc->options->wpFastestCacheMinifyCssPowerFul){
365
  if(class_exists("WpFastestCachePowerfulHtml")){
366
  $powerful_html = new WpFastestCachePowerfulHtml();
@@ -517,6 +533,10 @@
517
  return "url(".$matches[1].")";
518
  }
519
 
 
 
 
 
520
  public function fix_charset($css){
521
  preg_match_all('/@charset[^\;]+\;/i', $css, $charsets);
522
  if(count($charsets[0]) > 0){
108
  $combined_link = '<link rel="stylesheet" type="text/css" href="'.$cssLink."/".$cssFiles[0].'" media="'.$group_value[0]["media"].'"/>';
109
 
110
  if($css_content = $this->wpfc->read_file($cssLink."/".$cssFiles[0])){
111
+
112
+ $css_content = $this->apply_filter($css_content);
113
+
114
  $combined_link = $this->to_inline($combined_link, $css_content);
115
  }
116
  }
131
  if($cssFiles = @scandir($cachFilePath, 1)){
132
  $combined_link = '<link rel="stylesheet" type="text/css" href="'.$cssLink."/".$cssFiles[0].'" media="'.$group_value[0]["media"].'"/>';
133
 
134
+ $combined_css = $this->apply_filter($combined_css);
135
+
136
  $combined_link = $this->to_inline($combined_link, $combined_css);
137
  }
138
  }
192
  $prefixLink = str_replace(array("http:", "https:"), "", $minifiedCss["url"]);
193
  $text = preg_replace("/href\=[\"\'][^\"\']+[\"\']/", "href='".$prefixLink."'", $text);
194
 
195
+
196
+ $minifiedCss["cssContent"] = $this->apply_filter($minifiedCss["cssContent"]);
197
+
198
+
199
  $text = $this->to_inline($text, $minifiedCss["cssContent"]);
200
 
201
  $this->html = substr_replace($this->html, $text, $value["start"], ($value["end"] - $value["start"] + 1));
354
  if(is_dir($cachFilePath)){
355
  if($cssFiles = @scandir($cachFilePath, 1)){
356
  if($cssContent = $this->file_get_contents_curl($cssLink."/".$cssFiles[0])){
357
+
358
+
359
+ $cssContent = $this->apply_filter($cssContent);
360
+
361
+
362
  return array("cachFilePath" => $cachFilePath, "cssContent" => $cssContent, "url" => $cssLink."/".$cssFiles[0], "realUrl" => $url);
363
  }else{
364
  return false;
375
 
376
  $cssContent = $this->fixPathsInCssContent($cssContent, $url);
377
 
378
+ $cssContent = $this->apply_filter($cssContent);
379
+
380
  if(isset($this->wpfc->options->wpFastestCacheMinifyCssPowerFul) && $this->wpfc->options->wpFastestCacheMinifyCssPowerFul){
381
  if(class_exists("WpFastestCachePowerfulHtml")){
382
  $powerful_html = new WpFastestCachePowerfulHtml();
533
  return "url(".$matches[1].")";
534
  }
535
 
536
+ public function apply_filter($content){
537
+ return apply_filters('wpfc_css_content', $content, null, null);
538
+ }
539
+
540
  public function fix_charset($css){
541
  preg_match_all('/@charset[^\;]+\;/i', $css, $charsets);
542
  if(count($charsets[0]) > 0){
inc/js-utilities.php CHANGED
@@ -235,19 +235,21 @@
235
  $this->wpfc->createFolder($cachFilePath, $js_content, "js");
236
  }
237
 
238
- if($jsFiles = @scandir($cachFilePath, 1)){
 
239
 
240
- $newLink = "<script src='".$jsLink."/".$jsFiles[0]."' type=\"text/javascript\"></script>";
241
 
242
- $script_tag = substr($this->html, $value["start"], ($value["end"] - $value["start"] + 1));
243
-
244
- if($last){
245
- $script_tag = $newLink."\n<!-- ".$script_tag." -->\n";
246
- }else{
247
- $script_tag = $newLink."\n".$script_tag;
248
- }
249
 
250
- $this->html = substr_replace($this->html, $script_tag, $value["start"], ($value["end"] - $value["start"] + 1));
 
251
  }
252
  }
253
 
235
  $this->wpfc->createFolder($cachFilePath, $js_content, "js");
236
  }
237
 
238
+ if(is_dir($cachFilePath)){
239
+ if($jsFiles = @scandir($cachFilePath, 1)){
240
 
241
+ $newLink = "<script src='".$jsLink."/".$jsFiles[0]."' type=\"text/javascript\"></script>";
242
 
243
+ $script_tag = substr($this->html, $value["start"], ($value["end"] - $value["start"] + 1));
244
+
245
+ if($last){
246
+ $script_tag = $newLink."\n<!-- ".$script_tag." -->\n";
247
+ }else{
248
+ $script_tag = $newLink."\n".$script_tag;
249
+ }
250
 
251
+ $this->html = substr_replace($this->html, $script_tag, $value["start"], ($value["end"] - $value["start"] + 1));
252
+ }
253
  }
254
  }
255
 
js/cdn/cdn.js CHANGED
@@ -1,5 +1,5 @@
1
  var WpfcCDN = {
2
- values: {"name" : "", "cdnurl" : "", "originurl" : "", "file_types" : "", "keywords" : ""},
3
  id : "",
4
  template_url : "",
5
  content : "",
@@ -50,12 +50,12 @@ var WpfcCDN = {
50
  });
51
  }
52
  },
53
- insert_keywords: function(modal, keywords){
54
  var self = this;
55
 
56
  if(keywords){
57
  jQuery.each(keywords.split(","), function( index, value ) {
58
- jQuery('<li class="keyword-item"><a class="keyword-label">' + value + '</a></li>').insertBefore(modal.find(".wpfc-add-new-keyword").closest(".keyword-item")).click(function(){
59
  jQuery(this).remove();
60
  });
61
  });
@@ -72,7 +72,8 @@ var WpfcCDN = {
72
  modal.find("select#cdn-url").val(e.cdnurl);
73
  modal.find("#origin-url").val(e.originurl);
74
 
75
- self.insert_keywords(modal, e.keywords);
 
76
 
77
  if(e.file_types){
78
  modal.find(".wpfc-checkbox-list input[type='checkbox']").attr("checked", false);
@@ -89,10 +90,11 @@ var WpfcCDN = {
89
  jQuery(".wpfc-textbox-con .fixed-search input").keypress(function(e){
90
  if(e.keyCode == 13){
91
  var keyword = jQuery(e.target).val();
 
92
 
93
  jQuery(".wpfc-textbox-con").hide();
94
  jQuery(e.target).val("");
95
- jQuery('<li class="keyword-item"><a class="keyword-label">' + keyword + '</a></li>').insertBefore(jQuery(".wpfc-add-new-keyword").closest(".keyword-item")).click(function(){
96
  jQuery(this).remove();
97
  });
98
  }
@@ -100,8 +102,8 @@ var WpfcCDN = {
100
  },
101
  click_event_add_new_keyword_button: function(){
102
  jQuery(".wpfc-add-new-keyword").click(function(){
103
- jQuery(".wpfc-textbox-con").show();
104
- jQuery(".wpfc-textbox-con .fixed-search input").focus();
105
  });
106
  },
107
  set_buttons_action: function(){
@@ -183,13 +185,14 @@ var WpfcCDN = {
183
  self.values.originurl = modal.find("input#origin-url").val();
184
  self.values.file_types = modal.find(".wpfc-checkbox-list input[type='checkbox']:checked").map(function(){return this.value;}).get().join(",");
185
  self.values.keywords = modal.find(".keyword-item-list li.keyword-item a.keyword-label").map(function(){return this.text;}).get().join(",");
 
186
 
187
 
188
  jQuery.ajax({
189
  type: 'POST',
190
  dataType: "json",
191
  url: ajaxurl,
192
- data : {"action": "wpfc_save_cdn_integration", "values" : self.values, "file_types" : self.values.file_types, "keywords" : self.values.keywords},
193
  success: function(res){
194
  jQuery("div[wpfc-cdn-name='" + self.id + "']").find("div.meta").addClass("isConnected");
195
  jQuery(".wpfc-dialog-buttons[action='finish']").attr("disabled", false);
1
  var WpfcCDN = {
2
+ values: {"name" : "", "cdnurl" : "", "originurl" : "", "file_types" : "", "keywords" : "", "excludekeywords" : ""},
3
  id : "",
4
  template_url : "",
5
  content : "",
50
  });
51
  }
52
  },
53
+ insert_keywords: function(modal, classname, keywords){
54
  var self = this;
55
 
56
  if(keywords){
57
  jQuery.each(keywords.split(","), function( index, value ) {
58
+ jQuery('<li class="' + classname + '"><a class="keyword-label">' + value + '</a></li>').insertBefore(modal.find(".wpfc-add-new-keyword").closest("." + classname)).click(function(){
59
  jQuery(this).remove();
60
  });
61
  });
72
  modal.find("select#cdn-url").val(e.cdnurl);
73
  modal.find("#origin-url").val(e.originurl);
74
 
75
+ self.insert_keywords(modal, "keyword-item", e.keywords);
76
+ self.insert_keywords(modal, "keyword-item-exclude", e.excludekeywords);
77
 
78
  if(e.file_types){
79
  modal.find(".wpfc-checkbox-list input[type='checkbox']").attr("checked", false);
90
  jQuery(".wpfc-textbox-con .fixed-search input").keypress(function(e){
91
  if(e.keyCode == 13){
92
  var keyword = jQuery(e.target).val();
93
+ var keyword_type_class = jQuery(e.target).closest("li[class*='keyword-item']").attr("class");
94
 
95
  jQuery(".wpfc-textbox-con").hide();
96
  jQuery(e.target).val("");
97
+ jQuery('<li class="' + keyword_type_class + '"><a class="keyword-label">' + keyword + '</a></li>').insertBefore(jQuery(e.target).closest("." + keyword_type_class)).click(function(){
98
  jQuery(this).remove();
99
  });
100
  }
102
  },
103
  click_event_add_new_keyword_button: function(){
104
  jQuery(".wpfc-add-new-keyword").click(function(){
105
+ jQuery(this).next(".wpfc-textbox-con").show();
106
+ jQuery(this).next(".wpfc-textbox-con").find(".fixed-search input").focus();
107
  });
108
  },
109
  set_buttons_action: function(){
185
  self.values.originurl = modal.find("input#origin-url").val();
186
  self.values.file_types = modal.find(".wpfc-checkbox-list input[type='checkbox']:checked").map(function(){return this.value;}).get().join(",");
187
  self.values.keywords = modal.find(".keyword-item-list li.keyword-item a.keyword-label").map(function(){return this.text;}).get().join(",");
188
+ self.values.excludekeywords = modal.find(".keyword-item-list li.keyword-item-exclude a.keyword-label").map(function(){return this.text;}).get().join(",");
189
 
190
 
191
  jQuery.ajax({
192
  type: 'POST',
193
  dataType: "json",
194
  url: ajaxurl,
195
+ data : {"action": "wpfc_save_cdn_integration", "values" : self.values, "file_types" : self.values.file_types, "keywords" : self.values.keywords, "excludekeywords" : self.values.excludekeywords},
196
  success: function(res){
197
  jQuery("div[wpfc-cdn-name='" + self.id + "']").find("div.meta").addClass("isConnected");
198
  jQuery(".wpfc-dialog-buttons[action='finish']").attr("disabled", false);
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://profiles.wordpress.org/emrevona/
4
  Tags: cache, caching, performance, wp-cache, total cache, super cache, cdn
5
  Requires at least: 3.3
6
  Tested up to: 5.4
7
- Stable tag: 0.9.0.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -124,6 +124,12 @@ The free version is enough to speed up your site but in the premium version ther
124
 
125
  == Changelog ==
126
 
 
 
 
 
 
 
127
  = 0.9.0.6 =
128
  * <strong>[FEATURE]</strong> to add WP-CLI command for clearing minified sources [<a target="_blank" href="https://www.wpfastestcache.com/features/wp-cli-commands/">Details</a>]
129
  * to fix Warning: parse_url() expects parameter 1 to be string, object given in preload.php on line 458
4
  Tags: cache, caching, performance, wp-cache, total cache, super cache, cdn
5
  Requires at least: 3.3
6
  Tested up to: 5.4
7
+ Stable tag: 0.9.0.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
124
 
125
  == Changelog ==
126
 
127
+ = 0.9.0.7 =
128
+ * <strong>[FEATURE]</strong> to add "exclude sources" feature for CDN
129
+ * to remove the DNS prefetch of s.w.org when emoji is disabled
130
+ * <strong>[FEATURE]</strong> to add wpfc_css_content filter [<a target="_blank" href="https://www.wpfastestcache.com/tutorial/modify-minified-css-by-calling-the-function-hook/">Details</a>]
131
+ * to fix scandir(): (errno 2): No such file or directory on js-utilities.php line 238
132
+
133
  = 0.9.0.6 =
134
  * <strong>[FEATURE]</strong> to add WP-CLI command for clearing minified sources [<a target="_blank" href="https://www.wpfastestcache.com/features/wp-cli-commands/">Details</a>]
135
  * to fix Warning: parse_url() expects parameter 1 to be string, object given in preload.php on line 458
templates/cdn/exclude_sources.php ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <h1>Exclude Sources</h1>
2
+ <p>If you want some of the sources NOT to be served via CDN, you can specify the sources. If a source url contains any keyword below, it is NOT served via CDN.</p>
3
+ <div class="wiz-input-cont" style="padding:8px 18px;border-radius:0;text-align:center; background: #fff none repeat scroll 0 0;">
4
+
5
+ <style type="text/css">
6
+ .keyword-item-exclude{width:auto;float:left;line-height:22px;position:relative;background:rgba(0,0,0,0.15);margin:0 5px 5px 0;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;}
7
+ .keyword-item-exclude a.keyword-label{
8
+ background-color: #ffa100;
9
+ color:#ffffff;
10
+ text-decoration:none;
11
+ padding:7px 15px;
12
+ display:block;
13
+ text-shadow:none;
14
+ -webkit-transition:all .1s linear;
15
+ -moz-transition:all .1s linear;
16
+ -o-transition:all .1s linear;
17
+ transition:all .1s linear;
18
+ cursor: pointer;
19
+ }
20
+ .keyword-item-exclude a.keyword-label:hover{
21
+ padding-left: 4px;
22
+ padding-right: 26px;
23
+ }
24
+ .keyword-item-exclude a.keyword-label:hover:after{
25
+ width:16px;
26
+ height:16px;
27
+ background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAAnNCSVQICFXsRgQAAAAJcEhZcwAAAIAAAACAAc9WmjcAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwaAAAA4klEQVQokWXOMSuFcRQH4EcZZFB3w0BZfIC7mLl3MaGu2cAtqyLJwMQiRuObidFG4hNQJrlFJBlMFgzKMfi/vPe9/ZbT+T11jvAbq2nI8k3aB1MymStPTrTcyWTmi2BDdCQrgprtjjQKIJgw15aZth+Co9KB6zLYL4GLMthqq7/slcFKoVzTa1ClHTT/wKwxt0I4N/wPGqk+NuTNqQ/PLt3oyUEtgQWbQl3NqHVhOgfVBCYdCC3dhnwKSzkYSWDXslDVNG5RqOegksCDPg/ufXv34kxXAkF/SpcBh1492tEbwg+6YscxiN7TegAAAABJRU5ErkJggg==');
28
+ content:"";
29
+ position:absolute;
30
+ top:10px;
31
+ right:4px;
32
+ }
33
+
34
+
35
+
36
+ </style>
37
+
38
+ <ul class="keyword-item-list">
39
+ <li class="keyword-item-exclude">
40
+ <a class="wpfc-add-new-keyword">Add Keyword</a>
41
+ <div class="wpfc-textbox-con" style="display:none;">
42
+ <div class="fixed-search"><input type="text" placeholder="Add Keyword"></div>
43
+ </div>
44
+ </li>
45
+ </ul>
46
+ </div>
templates/cdn/maxcdn.php CHANGED
@@ -51,11 +51,16 @@
51
  <div wpfc-cdn-page="4" class="wiz-cont" style="display:none">
52
  <?php include WPFC_MAIN_PATH."templates/cdn/specify_sources.php"; ?>
53
  </div>
 
54
  <div wpfc-cdn-page="5" class="wiz-cont" style="display:none">
 
 
 
 
55
  <h1>Ready to Go!</h1>
56
  <p>You're all set! Click the finish button below and that's it.</p>
57
  </div>
58
- <div wpfc-cdn-page="6" class="wiz-cont" style="display:none">
59
  <h1>Integration Ready!</h1>
60
  <p>Your static contents will be delivered via MaxCDN.</p>
61
  </div>
51
  <div wpfc-cdn-page="4" class="wiz-cont" style="display:none">
52
  <?php include WPFC_MAIN_PATH."templates/cdn/specify_sources.php"; ?>
53
  </div>
54
+
55
  <div wpfc-cdn-page="5" class="wiz-cont" style="display:none">
56
+ <?php include WPFC_MAIN_PATH."templates/cdn/exclude_sources.php"; ?>
57
+ </div>
58
+
59
+ <div wpfc-cdn-page="6" class="wiz-cont" style="display:none">
60
  <h1>Ready to Go!</h1>
61
  <p>You're all set! Click the finish button below and that's it.</p>
62
  </div>
63
+ <div wpfc-cdn-page="7" class="wiz-cont" style="display:none">
64
  <h1>Integration Ready!</h1>
65
  <p>Your static contents will be delivered via MaxCDN.</p>
66
  </div>
templates/cdn/other.php CHANGED
@@ -51,11 +51,16 @@
51
  <div wpfc-cdn-page="4" class="wiz-cont" style="display:none">
52
  <?php include WPFC_MAIN_PATH."templates/cdn/specify_sources.php"; ?>
53
  </div>
 
54
  <div wpfc-cdn-page="5" class="wiz-cont" style="display:none">
 
 
 
 
55
  <h1>Ready to Go!</h1>
56
  <p>You're all set! Click the finish button below and that's it.</p>
57
  </div>
58
- <div wpfc-cdn-page="6" class="wiz-cont" style="display:none">
59
  <h1>Integration Ready!</h1>
60
  <p>Your static contents will be delivered via CDN.</p>
61
  </div>
51
  <div wpfc-cdn-page="4" class="wiz-cont" style="display:none">
52
  <?php include WPFC_MAIN_PATH."templates/cdn/specify_sources.php"; ?>
53
  </div>
54
+
55
  <div wpfc-cdn-page="5" class="wiz-cont" style="display:none">
56
+ <?php include WPFC_MAIN_PATH."templates/cdn/exclude_sources.php"; ?>
57
+ </div>
58
+
59
+ <div wpfc-cdn-page="6" class="wiz-cont" style="display:none">
60
  <h1>Ready to Go!</h1>
61
  <p>You're all set! Click the finish button below and that's it.</p>
62
  </div>
63
+ <div wpfc-cdn-page="7" class="wiz-cont" style="display:none">
64
  <h1>Integration Ready!</h1>
65
  <p>Your static contents will be delivered via CDN.</p>
66
  </div>
templates/cdn/photon.php CHANGED
@@ -57,11 +57,20 @@
57
  <div wpfc-cdn-page="4" class="wiz-cont" style="display:none">
58
  <?php include WPFC_MAIN_PATH."templates/cdn/specify_sources.php"; ?>
59
  </div>
 
 
 
60
  <div wpfc-cdn-page="5" class="wiz-cont" style="display:none">
 
 
 
 
 
 
61
  <h1>Ready to Go!</h1>
62
  <p>You're all set! Click the finish button below and that's it.</p>
63
  </div>
64
- <div wpfc-cdn-page="6" class="wiz-cont" style="display:none">
65
  <h1>Integration Ready!</h1>
66
  <p>Your static contents will be delivered via CDN.</p>
67
  </div>
57
  <div wpfc-cdn-page="4" class="wiz-cont" style="display:none">
58
  <?php include WPFC_MAIN_PATH."templates/cdn/specify_sources.php"; ?>
59
  </div>
60
+
61
+
62
+
63
  <div wpfc-cdn-page="5" class="wiz-cont" style="display:none">
64
+ <?php include WPFC_MAIN_PATH."templates/cdn/exclude_sources.php"; ?>
65
+ </div>
66
+
67
+
68
+
69
+ <div wpfc-cdn-page="6" class="wiz-cont" style="display:none">
70
  <h1>Ready to Go!</h1>
71
  <p>You're all set! Click the finish button below and that's it.</p>
72
  </div>
73
+ <div wpfc-cdn-page="7" class="wiz-cont" style="display:none">
74
  <h1>Integration Ready!</h1>
75
  <p>Your static contents will be delivered via CDN.</p>
76
  </div>
templates/cdn/specify_sources.php CHANGED
@@ -10,7 +10,6 @@
10
 
11
  .wpfc-textbox-con{position:absolute;left:0;top:0;-webkit-border-radius:3px;-moz-border-radius:3px;background:#fff;-webkit-box-shadow:0 2px 6px 2px rgba(0,0,0,0.3);box-shadow:0 2px 6px 2px rgba(0,0,0,0.3);-moz-box-shadow:0 2px 6px 2px rgba(0,0,0,0.3);float:left;z-index:444;width:150px;border:1px solid #adadad;}
12
  .keyword-item-list:after{box-shodow:0 2px 6px 0 rgba(0, 0, 0, 0.15);content:'';clear:both;height:0;visibility:hidden;display:block}
13
- .keyword-item{width:auto;float:left;line-height:22px;position:relative;background:rgba(0,0,0,0.15);margin:0 5px 0 0;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}
14
  .fixed-search input{width:100%;padding:6px 9px;line-height:20px;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;border:none;border-bottom:1px solid #ccc;-webkit-box-shadow:0 2px 6px 0 rgba(0,0,0,0.1);box-shadow:0 2px 6px 0 rgba(0,0,0,0.1);-moz-box-shadow:0 2px 6px 0 rgba(0,0,0,0.1);-webkit-border-radius:3px 3px 0 0;-moz-border-radius:3px 3px 0 0;border-radius:3px 3px 0 0;font-weight:bold}.fixed-search input:focus{outline:0}
15
  .keyword-item{width:auto;float:left;line-height:22px;position:relative;background:rgba(0,0,0,0.15);margin:0 5px 5px 0;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;}
16
  .wpfc-add-new-keyword, .keyword-item a.keyword-label{
10
 
11
  .wpfc-textbox-con{position:absolute;left:0;top:0;-webkit-border-radius:3px;-moz-border-radius:3px;background:#fff;-webkit-box-shadow:0 2px 6px 2px rgba(0,0,0,0.3);box-shadow:0 2px 6px 2px rgba(0,0,0,0.3);-moz-box-shadow:0 2px 6px 2px rgba(0,0,0,0.3);float:left;z-index:444;width:150px;border:1px solid #adadad;}
12
  .keyword-item-list:after{box-shodow:0 2px 6px 0 rgba(0, 0, 0, 0.15);content:'';clear:both;height:0;visibility:hidden;display:block}
 
13
  .fixed-search input{width:100%;padding:6px 9px;line-height:20px;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;border:none;border-bottom:1px solid #ccc;-webkit-box-shadow:0 2px 6px 0 rgba(0,0,0,0.1);box-shadow:0 2px 6px 0 rgba(0,0,0,0.1);-moz-box-shadow:0 2px 6px 0 rgba(0,0,0,0.1);-webkit-border-radius:3px 3px 0 0;-moz-border-radius:3px 3px 0 0;border-radius:3px 3px 0 0;font-weight:bold}.fixed-search input:focus{outline:0}
14
  .keyword-item{width:auto;float:left;line-height:22px;position:relative;background:rgba(0,0,0,0.15);margin:0 5px 5px 0;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;}
15
  .wpfc-add-new-keyword, .keyword-item a.keyword-label{
wpFastestCache.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP Fastest Cache
4
  Plugin URI: http://wordpress.org/plugins/wp-fastest-cache/
5
  Description: The simplest and fastest WP Cache system
6
- Version: 0.9.0.6
7
  Author: Emre Vona
8
  Author URI: http://tr.linkedin.com/in/emrevona
9
  Text Domain: wp-fastest-cache
@@ -1883,6 +1883,14 @@ GNU General Public License for more details.
1883
  }
1884
  }
1885
 
 
 
 
 
 
 
 
 
1886
  if(preg_match("/(data-product_variations|data-siteorigin-parallax)\=[\"\'][^\"\']+[\"\']/i", $matches[0])){
1887
  $cdnurl = preg_replace("/(https?\:)?(\/\/)(www\.)?/", "", $cdnurl);
1888
 
3
  Plugin Name: WP Fastest Cache
4
  Plugin URI: http://wordpress.org/plugins/wp-fastest-cache/
5
  Description: The simplest and fastest WP Cache system
6
+ Version: 0.9.0.7
7
  Author: Emre Vona
8
  Author URI: http://tr.linkedin.com/in/emrevona
9
  Text Domain: wp-fastest-cache
1883
  }
1884
  }
1885
 
1886
+ if($cdn->excludekeywords){
1887
+ $cdn->excludekeywords = str_replace(",", "|", $cdn->excludekeywords);
1888
+
1889
+ if(preg_match("/".preg_quote($cdn->excludekeywords, "/")."/i", $matches[0])){
1890
+ continue;
1891
+ }
1892
+ }
1893
+
1894
  if(preg_match("/(data-product_variations|data-siteorigin-parallax)\=[\"\'][^\"\']+[\"\']/i", $matches[0])){
1895
  $cdnurl = preg_replace("/(https?\:)?(\/\/)(www\.)?/", "", $cdnurl);
1896