Cachify - Version 2.0.4

Version Description

  • Bessere Trennung der Cache-Gesamtgre im Dashboard-Widget "Auf einen Blick"
Download this release

Release Info

Developer sergej.mueller
Plugin Icon 128x128 Cachify
Version 2.0.4
Comparing to
See all releases

Code changes from version 2.0.3 to 2.0.4

cachify.php CHANGED
@@ -5,7 +5,7 @@ Description: Smarter Cache für WordPress. Reduziert die Ladezeit der Blogseiten
5
  Author: Sergej Müller
6
  Author URI: http://wpseo.de
7
  Plugin URI: http://cachify.de
8
- Version: 2.0.3
9
  */
10
 
11
 
5
  Author: Sergej Müller
6
  Author URI: http://wpseo.de
7
  Plugin URI: http://cachify.de
8
+ Version: 2.0.4
9
  */
10
 
11
 
css/style.css CHANGED
@@ -1 +1 @@
1
- #icon-cachify{width:32px;height:32px;background:url('../img/icon@2x.png');background-size:100%;}#wp-admin-bar-cachify .ab-icon{float:left;width:16px;height:16px;position:relative;margin-top:6px;background:url(../img/trash@2x.png);background-size:100%;}#cachify_main .table{width:460px;height:1%;margin:20px 0 0;padding:0 0 5px;overflow:hidden;border:1px solid #dfdfdf;}#cachify_main .form-table{margin:0;}#cachify_main .form-table th{width:230px;vertical-align:middle;}#cachify_main .form-table th small{color:#8f8f8f;display:block;text-shadow:none;}#cachify_main .form-table caption{width:100%;color:#8f8f8f;margin:0 0 5px;background:whiteSmoke;line-height:20px;text-shadow:1px 1px #FFF;}#cachify_main .rounded{border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;}#cachify_main input,#cachify_main select{width:172px;}#cachify_main input.small{width:50px;}#cachify_main .submit{width:460px;height:1%;overflow:hidden;}#cachify_main .help{float:right;color:#bebebe;font-size:11px;text-align:right;line-height:11px;}
1
+ #icon-cachify{width:32px;height:32px;background:url('../img/icon@2x.png');background-size:100%;}#wp-admin-bar-cachify .ab-icon{float:left;width:16px;height:16px;position:relative;margin-top:6px;background:url(../img/trash@2x.png);background-size:100%;}#cachify_main .table{width:460px;height:1%;margin:20px 0 0;padding:0 0 5px;overflow:hidden;border:1px solid #dfdfdf;}#cachify_main .form-table{margin:0;}#cachify_main .form-table th{width:230px;vertical-align:middle;}#cachify_main .form-table th small{color:#8f8f8f;display:block;text-shadow:none;}#cachify_main .form-table caption{width:100%;color:#8f8f8f;margin:0 0 5px;background:whiteSmoke;line-height:20px;text-shadow:1px 1px #FFF;}#cachify_main .rounded{border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;}#cachify_main input,#cachify_main select{width:172px;}#cachify_main input.small{width:50px;}#cachify_main .submit{width:460px;height:1%;overflow:hidden;}#cachify_main .help{float:right;color:#bebebe;font-size:11px;text-align:right;line-height:11px;}#dashboard_right_now .table_cachify{margin-top:36px;border-top:#ececec 1px solid;}#dashboard_right_now .table_cachify .b{font-size:18px;padding-top:0;}
css/style.dev.css CHANGED
@@ -82,4 +82,18 @@
82
  line-height: 11px;
83
  }
84
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
  /* @end group */
82
  line-height: 11px;
83
  }
84
 
85
+ /* @end group */
86
+
87
+
88
+ /* @group Dashboard */
89
+
90
+ #dashboard_right_now .table_cachify {
91
+ margin-top: 36px;
92
+ border-top: #ececec 1px solid;
93
+ }
94
+ #dashboard_right_now .table_cachify .b {
95
+ font-size: 18px;
96
+ padding-top: 0;
97
+ }
98
+
99
  /* @end group */
inc/cachify.class.php CHANGED
@@ -123,7 +123,7 @@ final class Cachify {
123
  90
124
  );
125
  add_action(
126
- 'right_now_table_end',
127
  array(
128
  __CLASS__,
129
  'add_count'
@@ -557,7 +557,7 @@ final class Cachify {
557
  * Anzeige des Spam-Counters auf dem Dashboard
558
  *
559
  * @since 2.0
560
- * @change 2.0
561
  */
562
 
563
  public static function add_count()
@@ -580,13 +580,26 @@ final class Cachify {
580
  );
581
  }
582
 
 
 
 
583
  /* Ausgabe */
584
  echo sprintf(
585
  '<tr>
586
- <td class="b b-spam" style="font-size:18px">%s</td>
587
- <td class="last t">Cache</td>
 
 
 
 
 
 
 
 
 
588
  </tr>',
589
- ( $size ? size_format($size) : 0 )
 
590
  );
591
  }
592
 
123
  90
124
  );
125
  add_action(
126
+ 'right_now_content_table_end',
127
  array(
128
  __CLASS__,
129
  'add_count'
557
  * Anzeige des Spam-Counters auf dem Dashboard
558
  *
559
  * @since 2.0
560
+ * @change 2.0.4
561
  */
562
 
563
  public static function add_count()
580
  );
581
  }
582
 
583
+ /* Formatierung */
584
+ $format = ( empty($size) ? array(0, 'Bytes') : explode(' ', size_format($size)) );
585
+
586
  /* Ausgabe */
587
  echo sprintf(
588
  '<tr>
589
+ <td colspan="2">
590
+ <div class="table table_cachify">
591
+ <p class="sub">Cache</p>
592
+ <table>
593
+ <tr>
594
+ <td class="b">%s</td>
595
+ <td class="last t">%s</td>
596
+ </tr>
597
+ </table>
598
+ </div>
599
+ </td>
600
  </tr>',
601
+ (int)$format[0],
602
+ $format[1]
603
  );
604
  }
605
 
readme.txt CHANGED
@@ -50,6 +50,9 @@ Turbo für WordPress. Smarte, aber effiziente Cache-Lösung für WordPress. Mit
50
 
51
  == Changelog ==
52
 
 
 
 
53
  = 2.0.3 =
54
  * Cache-Leerung beim Veröffentlichen verfügbarer Custom Post Types
55
  * Noindex in der von WordPress generierten `robots.txt` für den Ordner mit HDD-Cache
@@ -145,4 +148,6 @@ Turbo für WordPress. Smarte, aber effiziente Cache-Lösung für WordPress. Mit
145
 
146
  == Screenshots ==
147
 
148
- 1. Cachify Optionen
 
 
50
 
51
  == Changelog ==
52
 
53
+ = 2.0.4 =
54
+ * Bessere Trennung der Cache-Gesamtgröße im Dashboard-Widget "Auf einen Blick"
55
+
56
  = 2.0.3 =
57
  * Cache-Leerung beim Veröffentlichen verfügbarer Custom Post Types
58
  * Noindex in der von WordPress generierten `robots.txt` für den Ordner mit HDD-Cache
148
 
149
  == Screenshots ==
150
 
151
+ 1. Cachify Optionen
152
+
153
+ 2. Cachegröße auf dem Dashboard
screenshot-1.png CHANGED
Binary file
screenshot-2.png ADDED
Binary file