Cache Enabler – WordPress Cache - Version 1.2.2

Version Description

  • Fixed settings form issue
Download this release

Release Info

Developer keycdn
Plugin Icon 128x128 Cache Enabler – WordPress Cache
Version 1.2.2
Comparing to
See all releases

Code changes from version 1.2.1 to 1.2.2

Files changed (3) hide show
  1. cache-enabler.php +1 -1
  2. inc/cache_enabler.class.php +8 -8
  3. readme.txt +3 -0
cache-enabler.php CHANGED
@@ -6,7 +6,7 @@ Description: Simple and fast WordPress disk caching plugin.
6
  Author: KeyCDN
7
  Author URI: https://www.keycdn.com
8
  License: GPLv2 or later
9
- Version: 1.2.1
10
  */
11
 
12
  /*
6
  Author: KeyCDN
7
  Author URI: https://www.keycdn.com
8
  License: GPLv2 or later
9
+ Version: 1.2.2
10
  */
11
 
12
  /*
inc/cache_enabler.class.php CHANGED
@@ -1772,7 +1772,7 @@ final class Cache_Enabler {
1772
  * settings page
1773
  *
1774
  * @since 1.0.0
1775
- * @change 1.1.1
1776
  */
1777
 
1778
  public static function settings_page() {
@@ -1815,7 +1815,7 @@ final class Cache_Enabler {
1815
  <td>
1816
  <fieldset>
1817
  <label for="cache_expires">
1818
- <input type="text" name="cache[expires]" id="cache_expires" value="<?php echo esc_attr($options['expires']) ?>" />
1819
  <p class="description"><?php _e("Cache expiry in hours. An expiry time of 0 means that the cache never expires.", "cache-enabler"); ?></p>
1820
  </label>
1821
  </fieldset>
@@ -1828,28 +1828,28 @@ final class Cache_Enabler {
1828
  <td>
1829
  <fieldset>
1830
  <label for="cache_new_post">
1831
- <input type="checkbox" name="cache[new_post]" id="cache_new_post" value="1" <?php checked('1', $options['new_post']); ?> />
1832
  <?php _e("Clear the complete cache if a new post has been published (instead of only the home page cache).", "cache-enabler") ?>
1833
  </label>
1834
 
1835
  <br />
1836
 
1837
  <label for="cache_new_comment">
1838
- <input type="checkbox" name="cache[new_comment]" id="cache_new_comment" value="1" <?php checked('1', $options['new_comment']); ?> />
1839
  <?php _e("Clear the complete cache if a new comment has been posted (instead of only the page specific cache).", "cache-enabler") ?>
1840
  </label>
1841
 
1842
  <br />
1843
 
1844
  <label for="cache_compress">
1845
- <input type="checkbox" name="cache[compress]" id="cache_compress" value="1" <?php checked('1', $options['compress']); ?> />
1846
  <?php _e("Pre-compression of cached pages. Needs to be disabled if the decoding fails in the web browser.", "cache-enabler") ?>
1847
  </label>
1848
 
1849
  <br />
1850
 
1851
  <label for="cache_webp">
1852
- <input type="checkbox" name="cache[webp]" id="cache_webp" value="1" <?php checked('1', $options['webp']); ?> />
1853
  <?php _e("Create an additional cached version for WebP image support. Convert your images to WebP with <a href=\"https://optimus.io/en/\" target=\"_blank\">Optimus</a>.", "cache-enabler") ?>
1854
  </label>
1855
  </fieldset>
@@ -1863,7 +1863,7 @@ final class Cache_Enabler {
1863
  <td>
1864
  <fieldset>
1865
  <label for="cache_excl_ids">
1866
- <input type="text" name="cache[excl_ids]" id="cache_excl_ids" value="<?php echo esc_attr($options['excl_ids']) ?>" />
1867
  <p class="description"><?php _e("Post or Pages IDs separated by a <code>,</code> that should not be cached.", "cache-enabler"); ?></p>
1868
  </label>
1869
  </fieldset>
@@ -1876,7 +1876,7 @@ final class Cache_Enabler {
1876
  </th>
1877
  <td>
1878
  <label for="cache_minify_html">
1879
- <select name="cache[minify_html]" id="cache_minify_html">
1880
  <?php foreach( self::_minify_select() as $k => $v ) { ?>
1881
  <option value="<?php echo esc_attr($k) ?>" <?php selected($options['minify_html'], $k); ?>>
1882
  <?php echo esc_html($v) ?>
1772
  * settings page
1773
  *
1774
  * @since 1.0.0
1775
+ * @change 1.2.2
1776
  */
1777
 
1778
  public static function settings_page() {
1815
  <td>
1816
  <fieldset>
1817
  <label for="cache_expires">
1818
+ <input type="text" name="cache-enabler[expires]" id="cache_expires" value="<?php echo esc_attr($options['expires']) ?>" />
1819
  <p class="description"><?php _e("Cache expiry in hours. An expiry time of 0 means that the cache never expires.", "cache-enabler"); ?></p>
1820
  </label>
1821
  </fieldset>
1828
  <td>
1829
  <fieldset>
1830
  <label for="cache_new_post">
1831
+ <input type="checkbox" name="cache-enabler[new_post]" id="cache_new_post" value="1" <?php checked('1', $options['new_post']); ?> />
1832
  <?php _e("Clear the complete cache if a new post has been published (instead of only the home page cache).", "cache-enabler") ?>
1833
  </label>
1834
 
1835
  <br />
1836
 
1837
  <label for="cache_new_comment">
1838
+ <input type="checkbox" name="cache-enabler[new_comment]" id="cache_new_comment" value="1" <?php checked('1', $options['new_comment']); ?> />
1839
  <?php _e("Clear the complete cache if a new comment has been posted (instead of only the page specific cache).", "cache-enabler") ?>
1840
  </label>
1841
 
1842
  <br />
1843
 
1844
  <label for="cache_compress">
1845
+ <input type="checkbox" name="cache-enabler[compress]" id="cache_compress" value="1" <?php checked('1', $options['compress']); ?> />
1846
  <?php _e("Pre-compression of cached pages. Needs to be disabled if the decoding fails in the web browser.", "cache-enabler") ?>
1847
  </label>
1848
 
1849
  <br />
1850
 
1851
  <label for="cache_webp">
1852
+ <input type="checkbox" name="cache-enabler[webp]" id="cache_webp" value="1" <?php checked('1', $options['webp']); ?> />
1853
  <?php _e("Create an additional cached version for WebP image support. Convert your images to WebP with <a href=\"https://optimus.io/en/\" target=\"_blank\">Optimus</a>.", "cache-enabler") ?>
1854
  </label>
1855
  </fieldset>
1863
  <td>
1864
  <fieldset>
1865
  <label for="cache_excl_ids">
1866
+ <input type="text" name="cache-enabler[excl_ids]" id="cache_excl_ids" value="<?php echo esc_attr($options['excl_ids']) ?>" />
1867
  <p class="description"><?php _e("Post or Pages IDs separated by a <code>,</code> that should not be cached.", "cache-enabler"); ?></p>
1868
  </label>
1869
  </fieldset>
1876
  </th>
1877
  <td>
1878
  <label for="cache_minify_html">
1879
+ <select name="cache-enabler[minify_html]" id="cache_minify_html">
1880
  <?php foreach( self::_minify_select() as $k => $v ) { ?>
1881
  <option value="<?php echo esc_attr($k) ?>" <?php selected($options['minify_html'], $k); ?>>
1882
  <?php echo esc_html($v) ?>
readme.txt CHANGED
@@ -64,6 +64,9 @@ This WordPress cache plugin is partially based on Cachify developed by [Sergej M
64
 
65
  == Changelog ==
66
 
 
 
 
67
  = 1.2.1 =
68
  * Minor fixes
69
 
64
 
65
  == Changelog ==
66
 
67
+ = 1.2.2 =
68
+ * Fixed settings form issue
69
+
70
  = 1.2.1 =
71
  * Minor fixes
72