Hyper Cache - Version 2.0.2

Version Description

Download this release

Release Info

Developer satollo
Plugin Icon wp plugin Hyper Cache
Version 2.0.2
Comparing to
See all releases

Code changes from version 2.0.1 to 2.0.2

Files changed (4) hide show
  1. options.php +33 -5
  2. plugin.php +1 -1
  3. readme.txt +3 -1
  4. ru_RU.php +31 -0
options.php CHANGED
@@ -99,6 +99,8 @@ if ($installed && isset($_POST['save']))
99
  $buffer .= '$hyper_cache_clean_interval = ' . $options['clean_interval'] . ";\n";
100
  if (trim($options['reject']) != '')
101
  {
 
 
102
  $buffer .= '$hyper_cache_reject = array(';
103
  $reject = explode("\n", $options['reject']);
104
  foreach ($reject as $uri)
@@ -119,10 +121,14 @@ if ($installed && isset($_POST['save']))
119
  else
120
  {
121
  $options = get_option('hyper');
122
- if (!$options['timeout'])
123
  {
124
  $options['timeout'] = 60;
125
  }
 
 
 
 
126
  }
127
 
128
  ?>
@@ -148,6 +154,8 @@ else
148
  }
149
  ?>
150
 
 
 
151
  <h3><?php echo $hyper_labels['configuration']; ?></h3>
152
  <table class="form-table">
153
  <tr valign="top">
@@ -181,9 +189,7 @@ else
181
  <tr valign="top">
182
  <?php hyper_field_checkbox('gzip', $hyper_labels['gzip'], $hyper_labels['gzip_desc']); ?>
183
  </tr>
184
- <tr valign="top">
185
- <?php hyper_field_checkbox('redirects', $hyper_labels['redirects'], $hyper_labels['redirects_desc']); ?>
186
- </tr>
187
  <!--
188
  <tr valign="top">
189
  <?php hyper_field_text('folder', $hyper_labels['folder'], $hyper_labels['folder_desc'], 'size="5"'); ?>
@@ -198,8 +204,30 @@ else
198
 
199
  <h3><?php echo $hyper_labels['advanced_options']; ?></h3>
200
  <table class="form-table">
 
 
 
201
  <tr valign="top">
202
- <?php echo hyper_field_textarea('reject', $hyper_labels['reject'], $hyper_labels['reject_desc']); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
203
  </tr>
204
  </table>
205
 
99
  $buffer .= '$hyper_cache_clean_interval = ' . $options['clean_interval'] . ";\n";
100
  if (trim($options['reject']) != '')
101
  {
102
+ $options['reject'] = str_replace(' ', "\n", $options['reject']);
103
+ $options['reject'] = str_replace("\r", "\n", $options['reject']);
104
  $buffer .= '$hyper_cache_reject = array(';
105
  $reject = explode("\n", $options['reject']);
106
  foreach ($reject as $uri)
121
  else
122
  {
123
  $options = get_option('hyper');
124
+ if ($options['timeout'] == '')
125
  {
126
  $options['timeout'] = 60;
127
  }
128
+ if ($options['clean_interval'] == '')
129
+ {
130
+ $options['clean_interval'] = 1440;
131
+ }
132
  }
133
 
134
  ?>
154
  }
155
  ?>
156
 
157
+ <p>Check the advanced options if you are using the Global Translator Plugin</p>
158
+
159
  <h3><?php echo $hyper_labels['configuration']; ?></h3>
160
  <table class="form-table">
161
  <tr valign="top">
189
  <tr valign="top">
190
  <?php hyper_field_checkbox('gzip', $hyper_labels['gzip'], $hyper_labels['gzip_desc']); ?>
191
  </tr>
192
+
 
 
193
  <!--
194
  <tr valign="top">
195
  <?php hyper_field_text('folder', $hyper_labels['folder'], $hyper_labels['folder_desc'], 'size="5"'); ?>
204
 
205
  <h3><?php echo $hyper_labels['advanced_options']; ?></h3>
206
  <table class="form-table">
207
+ <tr valign="top">
208
+ <?php hyper_field_checkbox('redirects', $hyper_labels['redirects'], $hyper_labels['redirects_desc']); ?>
209
+ </tr>
210
  <tr valign="top">
211
+ <th scope="row"><label><?php echo $hyper_labels['reject']; ?></label></th>
212
+ <td>
213
+ <textarea wrap="off" rows="5" cols="70" name="options[reject]"><?php echo htmlspecialchars($options['reject']); ?></textarea>
214
+ <br />
215
+ <?php echo $hyper_labels['reject_desc']; ?>
216
+
217
+ <?php
218
+ $languages = get_option('gltr_preferred_languages');
219
+ if (is_array($languages))
220
+ {
221
+ echo '<br />';
222
+ $home = get_option('home');
223
+ $x = strpos($home, '/', 8); // skips http://
224
+ $base = '';
225
+ if ($x !== false) $base = substr($home, $x);
226
+ echo 'It seems you have Global Translator installed. The URI prefixes below can be added to avoid double caching of translated pages:<br />';
227
+ foreach($languages as $l) echo $base . '/' . $l . '/ ';
228
+ }
229
+ ?>
230
+ </td>
231
  </tr>
232
  </table>
233
 
plugin.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Hyper Cache
4
  Plugin URI: http://www.satollo.com/english/wordpress/hyper-cache
5
  Description: Hyper Cache is an extremely aggressive cache for WordPress even for mobile blogs. After an upgrade, DEACTIVATE, REACTIVATE and RECONFIGURE. ALWAYS!
6
- Version: 2.0.1
7
  Author: Satollo
8
  Author URI: http://www.satollo.com
9
  Disclaimer: Use at your own risk. No warranty expressed or implied is provided.
3
  Plugin Name: Hyper Cache
4
  Plugin URI: http://www.satollo.com/english/wordpress/hyper-cache
5
  Description: Hyper Cache is an extremely aggressive cache for WordPress even for mobile blogs. After an upgrade, DEACTIVATE, REACTIVATE and RECONFIGURE. ALWAYS!
6
+ Version: 2.0.2
7
  Author: Satollo
8
  Author URI: http://www.satollo.com
9
  Disclaimer: Use at your own risk. No warranty expressed or implied is provided.
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Tags: cache,chaching
3
  Requires at least: 2.1
4
  Tested up to: 2.6.3
5
- Stable tag: 2.0.1
6
  Donate link: http://www.satollo.com/english/donate
7
  Contributors: satollo,momo360modena
8
 
@@ -34,6 +34,8 @@ the feed requests.
34
  Hyper Cache can be easly translated and the translation tested without compile
35
  a language file: just copy the en_US.php file and start to translate.
36
 
 
 
37
  More information on Hyper Cache page (below) or write me to info@satollo.com.
38
 
39
  http://www.satollo.com/english/wordpress/hyper-cache
2
  Tags: cache,chaching
3
  Requires at least: 2.1
4
  Tested up to: 2.6.3
5
+ Stable tag: 2.0.2
6
  Donate link: http://www.satollo.com/english/donate
7
  Contributors: satollo,momo360modena
8
 
34
  Hyper Cache can be easly translated and the translation tested without compile
35
  a language file: just copy the en_US.php file and start to translate.
36
 
37
+ Global Translator detection.
38
+
39
  More information on Hyper Cache page (below) or write me to info@satollo.com.
40
 
41
  http://www.satollo.com/english/wordpress/hyper-cache
ru_RU.php ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ $hyper_labels['wp_cache_not_enabled'] = "Система кэширования wordPress не включена. Пожалуйста, активируйте ее добавлением указанной ниже строки в wp-config.php. Спасибо!";
4
+ $hyper_labels['configuration'] = "Конфигурация";
5
+ $hyper_labels['activate'] = "Активировать кэш?";
6
+ $hyper_labels['timeout'] = "Время жизни кэшированных страниц";
7
+ $hyper_labels['timeout_desc'] = "минут (установите в 0, чтобы они оставались постоянно)";
8
+ $hyper_labels['count'] = "Всего кэшированных страниц (кэшированные редиректы также считаются)";
9
+ $hyper_labels['save'] = "Сохранить";
10
+ //$hyper_labels['store'] = "Store pages as";
11
+ //$hyper_labels['folder'] = "Cache folder";
12
+ $hyper_labels['gzip'] = "Gzip сжатие";
13
+ $hyper_labels['gzip_desc'] = "Отправлять сжатые в gzip страницы для поддерживаемых браузеров";
14
+ $hyper_labels['clear'] = "Очистить кэш";
15
+ $hyper_labels['compress_html'] = "Оптимизировать HTML";
16
+ $hyper_labels['compress_html_desc'] = "Попытаться оптимизировать HTML удаляя неиспользуемые пробелы. Не делайте этого, если вы используете теги &lt;pre&gt; в ваших записях";
17
+ $hyper_labels['redirects'] = "Кэшировать WP редиректы";
18
+ $hyper_labels['redirects_desc'] = "Могут быть проблемы с некоторыми конфигурациями. Попробуйте.";
19
+ $hyper_labels['mobile'] = "Детектировать и кэшировать страницы для мобильных устройств";
20
+ $hyper_labels['clean_interval'] = "Автоочистка каждые";
21
+ $hyper_labels['clean_interval_desc'] = "минут (установите в 0 чтобы отключить)";
22
+ $hyper_labels['not_activated'] = "Hyper Cache не установлен корректно: некоторые файлы или директории не созданы. Проверьте что на директорию wp-content установлены правильные права (777) и удалите файл advanced-cache.php в ней. Деактивируйте и переактивируйте плагин повторно.";
23
+ $hyper_labels['expire_type'] = "Как очищать кэш";
24
+ $hyper_labels['expire_type_desc'] = "(на новых записях, обновленных записях, комментариях)";
25
+ $hyper_labels['advanced_options'] = "Расширенные настройки";
26
+ $hyper_labels['reject'] = "исключить URI";
27
+ $hyper_labels['reject_desc'] = "Один на строку. Когда URI (eg. /video/my-new-performance) начинается с одной из этих строк, то он не будет кэширован.";
28
+
29
+
30
+
31
+ ?>