SG Optimizer - Version 2.3.1

Version Description

Download this release

Release Info

Developer Hristo Sg
Plugin Icon 128x128 SG Optimizer
Version 2.3.1
Comparing to
See all releases

Code changes from version 2.2.9 to 2.3.1

class-sg-cachepress-admin.php CHANGED
@@ -12,8 +12,6 @@
12
 
13
  /** SG CachePress purge cache admin class */
14
 
15
-
16
-
17
  class SG_CachePress_Admin {
18
 
19
  /**
@@ -107,6 +105,7 @@ class SG_CachePress_Admin {
107
  function load_admin_global_js()
108
  {
109
  wp_enqueue_script( '', plugins_url( 'js/admin_global.js', __FILE__ ), array( 'jquery' ), SG_CachePress::VERSION, true );
 
110
  }
111
 
112
  /**
@@ -179,7 +178,7 @@ class SG_CachePress_Admin {
179
  function add_admin_bar_purge( $wp_admin_bar ){
180
  $args = array(
181
  'id' => 'SG_CachePress_Supercacher_Purge',
182
- 'title' => 'Purge SG Cache',
183
  'href' => wp_nonce_url( admin_url( 'admin-post.php?action=sg-cachepress-purge' ),'sg-cachepress-purge' ),
184
  'meta' => array( 'class' => 'sg-cachepress-admin-bar-purge' )
185
  );
@@ -279,9 +278,15 @@ class SG_CachePress_Admin {
279
  'purge' => __( 'Purge the Cache', 'sg-cachepress' ),
280
  'purging' => __( 'Purging, please wait...', 'sg-cachepress' ),
281
  'updating' => __( 'Updating, please wait...', 'sg-cachepress' ),
282
- 'updated' => __( 'Update the Exclude List' ),
283
  'purged' => __( 'Successfully Purged', 'sg-cachepress' ),
284
- 'ajax_url' => admin_url( 'admin-ajax.php' )
 
 
 
 
 
 
285
  );
286
  wp_localize_script( SG_CachePress::PLUGIN_SLUG . '-admin', 'sgCachePressL10n', $strings );
287
  }
12
 
13
  /** SG CachePress purge cache admin class */
14
 
 
 
15
  class SG_CachePress_Admin {
16
 
17
  /**
105
  function load_admin_global_js()
106
  {
107
  wp_enqueue_script( '', plugins_url( 'js/admin_global.js', __FILE__ ), array( 'jquery' ), SG_CachePress::VERSION, true );
108
+
109
  }
110
 
111
  /**
178
  function add_admin_bar_purge( $wp_admin_bar ){
179
  $args = array(
180
  'id' => 'SG_CachePress_Supercacher_Purge',
181
+ 'title' => __('Purge SG Cache','sg-cachepress'),
182
  'href' => wp_nonce_url( admin_url( 'admin-post.php?action=sg-cachepress-purge' ),'sg-cachepress-purge' ),
183
  'meta' => array( 'class' => 'sg-cachepress-admin-bar-purge' )
184
  );
278
  'purge' => __( 'Purge the Cache', 'sg-cachepress' ),
279
  'purging' => __( 'Purging, please wait...', 'sg-cachepress' ),
280
  'updating' => __( 'Updating, please wait...', 'sg-cachepress' ),
281
+ 'updated' => __( 'Update the Exclude List', 'sg-cachepress' ),
282
  'purged' => __( 'Successfully Purged', 'sg-cachepress' ),
283
+ 'ajax_url' => admin_url( 'admin-ajax.php' ),
284
+ 'testing' => __( 'Testing...', 'sg-cachepress' ),
285
+ 'cached' => __( 'CACHED', 'sg-cachepress' ),
286
+ 'notcached' => __( 'DYNAMIC', 'sg-cachepress' ),
287
+ 'noheaders' => __( 'CAN\'T GET HEADERS', 'sg-cachepress' ),
288
+ 'testurl' => __( 'Test URL', 'sg-cachepress' ),
289
+ 'showstat' => __( 'Test URL', 'sg-cachepress' )
290
  );
291
  wp_localize_script( SG_CachePress::PLUGIN_SLUG . '-admin', 'sgCachePressL10n', $strings );
292
  }
css/admin.css CHANGED
@@ -12,7 +12,7 @@ h3 { margin: 0 0 10px; }
12
  .sgwrap p.error { border: none !important;}
13
  .cached { color: green; font-weight:700 }
14
  input[type="name"] {box-shadow: none !important; height: 10px}
15
-
16
  .wp-core-ui .button-primary { background: #3D4A69; color: #fff; border: none; border-color: #3D4A69; box-shadow: none; height: 40px; line-height: 40px; text-align: center; }
17
  .wp-core-ui .button-primary:hover,
18
  .wp-core-ui .button-primary:active,
12
  .sgwrap p.error { border: none !important;}
13
  .cached { color: green; font-weight:700 }
14
  input[type="name"] {box-shadow: none !important; height: 10px}
15
+ #sg-cachepress-purge {background: #3e4b68; color: #FFF; border: none; box-shadow: none;}
16
  .wp-core-ui .button-primary { background: #3D4A69; color: #fff; border: none; border-color: #3D4A69; box-shadow: none; height: 40px; line-height: 40px; text-align: center; }
17
  .wp-core-ui .button-primary:hover,
18
  .wp-core-ui .button-primary:active,
css/onoff.jpg CHANGED
Binary file
js/admin.js CHANGED
@@ -123,7 +123,7 @@ var cachepress_test_counter = 0;
123
  function sg_cachepress_test_submit( )
124
  {
125
  jQuery('.status_test').slideUp();
126
- jQuery('#sg-cachepress-test').prop('disabled',true).attr('value','Testing...');
127
  jQuery('#testurl').prop('disabled',true);
128
  var postUrl = jQuery("#testurl").val();
129
 
@@ -131,19 +131,20 @@ function sg_cachepress_test_submit( )
131
  jQuery.post(ajaxUrl,{action:'sg-cachepress-cache-test',url:postUrl},function(result){ sg_cachepress_test_result(result); });
132
  }
133
 
 
134
  function sg_cachepress_test_result(result)
135
  {
136
  cachepress_test_counter = cachepress_test_counter + 1;
137
 
138
  if(result == 1)
139
- sg_cachepress_test_result_display_output( 'CACHED', 'cached' );
140
 
141
  if(result == 0 && cachepress_test_counter == 1)
142
  setTimeout("sg_cachepress_test_submit();",2000);
143
  else if(result == 0)
144
- sg_cachepress_test_result_display_output( 'NOT CACHED', 'notcached' );
145
  else if(result == 2)
146
- sg_cachepress_test_result_display_output( 'CANT GET HEADERS', 'notcached' );
147
 
148
  if(result == 1 || cachepress_test_counter == 2)
149
  cachepress_test_counter = 0;
@@ -151,7 +152,7 @@ function sg_cachepress_test_result(result)
151
 
152
  function sg_cachepress_test_result_display_output( text, classText )
153
  {
154
- jQuery('#sg-cachepress-test').prop('disabled',false).attr('value','Test URL');
155
  jQuery('#testurl').prop('disabled',false);
156
 
157
  jQuery('#status_test_value').html('<span class="'+classText+'">'+text+'</span>');
123
  function sg_cachepress_test_submit( )
124
  {
125
  jQuery('.status_test').slideUp();
126
+ jQuery('#sg-cachepress-test').prop('disabled',true).attr('value',sgCachePressL10n.testing);
127
  jQuery('#testurl').prop('disabled',true);
128
  var postUrl = jQuery("#testurl").val();
129
 
131
  jQuery.post(ajaxUrl,{action:'sg-cachepress-cache-test',url:postUrl},function(result){ sg_cachepress_test_result(result); });
132
  }
133
 
134
+
135
  function sg_cachepress_test_result(result)
136
  {
137
  cachepress_test_counter = cachepress_test_counter + 1;
138
 
139
  if(result == 1)
140
+ sg_cachepress_test_result_display_output( sgCachePressL10n.cached, 'cached' );
141
 
142
  if(result == 0 && cachepress_test_counter == 1)
143
  setTimeout("sg_cachepress_test_submit();",2000);
144
  else if(result == 0)
145
+ sg_cachepress_test_result_display_output( sgCachePressL10n.notcached, 'notcached' );
146
  else if(result == 2)
147
+ sg_cachepress_test_result_display_output( sgCachePressL10n.noheaders, 'notcached' );
148
 
149
  if(result == 1 || cachepress_test_counter == 2)
150
  cachepress_test_counter = 0;
152
 
153
  function sg_cachepress_test_result_display_output( text, classText )
154
  {
155
+ jQuery('#sg-cachepress-test').prop('disabled',false).attr('value',sgCachePressL10n.testurl);
156
  jQuery('#testurl').prop('disabled',false);
157
 
158
  jQuery('#status_test_value').html('<span class="'+classText+'">'+text+'</span>');
languages/sg-cachepress-bg_BG.mo ADDED
Binary file
languages/sg-cachepress-bg_BG.po ADDED
@@ -0,0 +1,187 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: SG CachePress\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: Sat Dec 12 2015 09:06:11 GMT+0200 (EET)\n"
6
+ "PO-Revision-Date: Sat Dec 12 2015 14:12:22 GMT+0200 (EET)\n"
7
+ "Last-Translator: Hristo Pandjarov <pandjarov@me.com>\n"
8
+ "Language-Team: \n"
9
+ "Language: Bulgarian\n"
10
+ "Plural-Forms: nplurals=2; plural=n != 1\n"
11
+ "MIME-Version: 1.0\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+ "Content-Transfer-Encoding: 8bit\n"
14
+ "X-Poedit-SourceCharset: UTF-8\n"
15
+ "X-Poedit-Basepath: .\n"
16
+ "X-Poedit-SearchPath-0: ..\n"
17
+ "X-Poedit-KeywordsList: _:1;gettext:1;dgettext:2;ngettext:1,2;dngettext:2,3;"
18
+ "__:1;_e:1;_c:1;_n:1,2;_n_noop:1,2;_nc:1,2;__ngettext:1,2;__ngettext_noop:1,2;"
19
+ "_x:1,2c;_ex:1,2c;_nx:1,2,4c;_nx_noop:1,2,3c;_n_js:1,2;_nx_js:1,2,3c;"
20
+ "esc_attr__:1;esc_html__:1;esc_attr_e:1;esc_html_e:1;esc_attr_x:1,2c;"
21
+ "esc_html_x:1,2c;comments_number_link:2,3;t:1;st:1;trans:1;transChoice:1,2\n"
22
+ "X-Loco-Target-Locale: bg_BG\n"
23
+ "X-Generator: Loco - https://localise.biz/"
24
+
25
+ #: ../views/sg-cache.php:51
26
+ msgid "Enable Memcached"
27
+ msgstr "Включване на Memcached"
28
+
29
+ #. Name of the plugin
30
+ msgid "SG CachePress"
31
+ msgstr "SG CachePress"
32
+
33
+ #. Description of the plugin
34
+ msgid ""
35
+ "Through the settings of this plugin you can manage how your Wordpress "
36
+ "interracts with NGINX and Memcached."
37
+ msgstr ""
38
+ "Чрез тези настройки, може да определите как WordPress да работи с NGINX и "
39
+ "Memcached."
40
+
41
+ #. Author of the plugin
42
+ msgid "SiteGround"
43
+ msgstr "SiteGround"
44
+
45
+ #: ../class-sg-cachepress-admin.php:181
46
+ msgid "Purge SG Cache"
47
+ msgstr "Изчисти SG кеша"
48
+
49
+ #: ../class-sg-cachepress-admin.php:278 ../views/sg-cache.php:28
50
+ msgid "Purge the Cache"
51
+ msgstr "Изчисти кеша"
52
+
53
+ #: ../class-sg-cachepress-admin.php:279
54
+ msgid "Purging, please wait..."
55
+ msgstr "Чистене, моля изчакайте..."
56
+
57
+ #: ../class-sg-cachepress-admin.php:280
58
+ msgid "Updating, please wait..."
59
+ msgstr "Обновяване, моля изчакайте..."
60
+
61
+ #: ../class-sg-cachepress-admin.php:281 ../views/sg-cache.php:41
62
+ msgid "Update the Exclude List"
63
+ msgstr "Обнови списъка изключени адреси"
64
+
65
+ #: ../class-sg-cachepress-admin.php:282
66
+ msgid "Successfully Purged"
67
+ msgstr "Успешно изчистване"
68
+
69
+ #: ../class-sg-cachepress-admin.php:284
70
+ msgid "Testing..."
71
+ msgstr "Тестване..."
72
+
73
+ #: ../class-sg-cachepress-admin.php:285
74
+ msgid "CACHED"
75
+ msgstr "КЕШИРАНО"
76
+
77
+ #: ../class-sg-cachepress-admin.php:286
78
+ msgid "DYNAMIC"
79
+ msgstr "ДЕНАМИЧНО"
80
+
81
+ #: ../class-sg-cachepress-admin.php:287
82
+ msgid "CAN'T GET HEADERS"
83
+ msgstr "ГРЕШКА ПРИ ТЕСТА"
84
+
85
+ #: ../class-sg-cachepress-admin.php:288 ../class-sg-cachepress-admin.php:289 ..
86
+ #: /views/sg-cache.php:66
87
+ msgid "Test URL"
88
+ msgstr "Тествай адрес"
89
+
90
+ #. Page title
91
+ #: ../class-sg-cachepress-admin.php:302 ../class-sg-cachepress-admin.php:303
92
+ msgid "SuperCacher"
93
+ msgstr "SuperCacher"
94
+
95
+ #: ../views/sg-cache.php:3
96
+ msgid "SuperCacher for WordPress by SiteGround"
97
+ msgstr "SuperCacher за WordPress от SiteGround\n"
98
+
99
+ #: ../views/sg-cache.php:4
100
+ msgid ""
101
+ "The SuperCacher is a system that allows you to use the SiteGround dynamic "
102
+ "cache and Memcached to optimize the performance of your WordPress. In order "
103
+ "to take advantage of the system you should have the SuperCacher enabled at "
104
+ "your web host plus the required cache options turned on below. For more "
105
+ "information on the different caching options refer to the <a href=\"http:"
106
+ "//www.siteground.com/tutorials/supercacher/\" target=\"_blank\">SuperCacher "
107
+ "Tutorial</a>!"
108
+ msgstr ""
109
+ "SuperCacher е система, която Ви позволява да използвате динамичния кеш на "
110
+ "SiteGround и Memcached за да подобрите скоростта на Вашия WordPress сайт. За "
111
+ "да го използвате, SuperCacher трябва да бъде включен за хостинг акаунта Ви, "
112
+ "както и от настройката по-долу. За повече информация относно различните "
113
+ "кешинг опции, моля прегледайте нашето <a href=\"http://www.siteground."
114
+ "com/tutorials/supercacher/\" target=\"_blank\">ръководство за SuperCacher</a>!"
115
+
116
+ #: ../views/sg-cache.php:8
117
+ msgid "Dynamic Cache Settings"
118
+ msgstr "Настройки на динамичния кеш"
119
+
120
+ #: ../views/sg-cache.php:12
121
+ msgid "Dynamic Cache"
122
+ msgstr "Динамичен кеш"
123
+
124
+ #: ../views/sg-cache.php:14
125
+ msgid "Enable the Dynamic caching system"
126
+ msgstr "Включи динамичния кешинг"
127
+
128
+ #: ../views/sg-cache.php:19
129
+ msgid "AutoFlush Cache"
130
+ msgstr "Авто-опресняване"
131
+
132
+ #: ../views/sg-cache.php:21
133
+ msgid "Automatically flush the Dynamic cache when you edit your content."
134
+ msgstr "Автоматично чистене на кеша"
135
+
136
+ #: ../views/sg-cache.php:26
137
+ msgid "Purge Cache"
138
+ msgstr "Изчистване на кеша"
139
+
140
+ #: ../views/sg-cache.php:30
141
+ msgid "Purge all the data cached by the Dynamic cache."
142
+ msgstr "Изчисти изцяло кеша"
143
+
144
+ #: ../views/sg-cache.php:35
145
+ msgid "Exclude URLs From Dynamic Caching"
146
+ msgstr "Изключи адреси от динамично кеширане"
147
+
148
+ #: ../views/sg-cache.php:36
149
+ msgid ""
150
+ "Provide a list of your website URLs you would like to exclude from the cache."
151
+ " For example if you would like to exclude: <strong>http://domain."
152
+ "com/path/to/url</strong><br>\n"
153
+ " You can simply input the \"path\" string part of the URL. Then each URL "
154
+ "that consists of it will be excluded. Divide each URL by a new line."
155
+ msgstr ""
156
+ "Списък с адреси, които желаете да изключите от кеширане. Примерно, ако "
157
+ "искате да изключите: <strong>http://domain.com/path/to/url</strong><br>\n"
158
+ "може да въведете само \"path\". тогава всички страници, които съдържат тази "
159
+ "дума ще бъдат напълно динамични. Всеки адрес добавете на нов ред."
160
+
161
+ #: ../views/sg-cache.php:46
162
+ msgid "Memcached Settings"
163
+ msgstr "Настройки на Memcached"
164
+
165
+ #: ../views/sg-cache.php:55
166
+ msgid ""
167
+ "Store in the server's memory frequently executed queries to the database for "
168
+ "a faster access on a later use."
169
+ msgstr ""
170
+ "Записване в паметта на сървъра често изпълнявани заявки към базата данни за "
171
+ "по-бърз повторен достъп."
172
+
173
+ #: ../views/sg-cache.php:61
174
+ msgid "Dynamic Cache Status"
175
+ msgstr "Статус на динамичния кеш"
176
+
177
+ #: ../views/sg-cache.php:69
178
+ msgid "Status:"
179
+ msgstr "Статус:"
180
+
181
+ #: ../views/sg-cache.php:72
182
+ msgid ""
183
+ "Check if this URL is dynamic or cached. Leave empty for your index or "
184
+ "<strong>/example/</strong> for another page."
185
+ msgstr ""
186
+ "Проверка дали една страница е динамична или кеширана. Оставете празно за "
187
+ "индексната си страница или <strong>/example/</strong> за друга."
languages/sg-cachepress-es_ES.mo ADDED
Binary file
languages/sg-cachepress-es_ES.po ADDED
@@ -0,0 +1,189 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: SG CachePress\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: Sat Dec 12 2015 09:06:11 GMT+0200 (EET)\n"
6
+ "PO-Revision-Date: Mon Dec 14 2015 10:41:35 GMT+0200 (EET)\n"
7
+ "Last-Translator: Hristo Pandjarov <pandjarov@me.com>\n"
8
+ "Language-Team: \n"
9
+ "Language: Spanish (Spain)\n"
10
+ "Plural-Forms: nplurals=2; plural=n != 1\n"
11
+ "MIME-Version: 1.0\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+ "Content-Transfer-Encoding: 8bit\n"
14
+ "X-Poedit-SourceCharset: UTF-8\n"
15
+ "X-Poedit-Basepath: .\n"
16
+ "X-Poedit-KeywordsList: _:1;gettext:1;dgettext:2;ngettext:1,2;dngettext:2,3;"
17
+ "__:1;_e:1;_c:1;_n:1,2;_n_noop:1,2;_nc:1,2;__ngettext:1,2;__ngettext_noop:1,2;"
18
+ "_x:1,2c;_ex:1,2c;_nx:1,2,4c;_nx_noop:1,2,3c;_n_js:1,2;_nx_js:1,2,3c;"
19
+ "esc_attr__:1;esc_html__:1;esc_attr_e:1;esc_html_e:1;esc_attr_x:1,2c;"
20
+ "esc_html_x:1,2c;comments_number_link:2,3;t:1;st:1;trans:1;transChoice:1,2\n"
21
+ "X-Loco-Target-Locale: es_ES\n"
22
+ "X-Generator: Loco - https://localise.biz/\n"
23
+ "X-Poedit-SearchPath-0: .."
24
+
25
+ #: ../views/sg-cache.php:51
26
+ msgid "Enable Memcached"
27
+ msgstr ""
28
+
29
+ #. Name of the plugin
30
+ msgid "SG CachePress"
31
+ msgstr "SG CachePress"
32
+
33
+ #. Description of the plugin
34
+ msgid ""
35
+ "Through the settings of this plugin you can manage how your Wordpress "
36
+ "interracts with NGINX and Memcached."
37
+ msgstr ""
38
+ "A través de la configuración de este plugin se puede gestionar cómo actúa "
39
+ "Wordpress con Nginx y Memcached."
40
+
41
+ #. Author of the plugin
42
+ msgid "SiteGround"
43
+ msgstr "SiteGround"
44
+
45
+ #: ../class-sg-cachepress-admin.php:181
46
+ msgid "Purge SG Cache"
47
+ msgstr "Limpieza SG Cache"
48
+
49
+ #: ../class-sg-cachepress-admin.php:278 ../views/sg-cache.php:28
50
+ msgid "Purge the Cache"
51
+ msgstr "Liempieza de caché"
52
+
53
+ #: ../class-sg-cachepress-admin.php:279
54
+ msgid "Purging, please wait..."
55
+ msgstr "Limpiando. Por favor, espere..."
56
+
57
+ #: ../class-sg-cachepress-admin.php:280
58
+ msgid "Updating, please wait..."
59
+ msgstr "Actualizando. Por favor, espere..."
60
+
61
+ #: ../class-sg-cachepress-admin.php:281 ../views/sg-cache.php:41
62
+ msgid "Update the Exclude List"
63
+ msgstr "Actualizando lista de exclusión"
64
+
65
+ #: ../class-sg-cachepress-admin.php:282
66
+ msgid "Successfully Purged"
67
+ msgstr "Limpieza completada con éxito"
68
+
69
+ #: ../class-sg-cachepress-admin.php:284
70
+ msgid "Testing..."
71
+ msgstr "Comprobando..."
72
+
73
+ #: ../class-sg-cachepress-admin.php:285
74
+ msgid "CACHED"
75
+ msgstr "EN CACHÉ"
76
+
77
+ #: ../class-sg-cachepress-admin.php:286
78
+ msgid "DYNAMIC"
79
+ msgstr "DINÁMICO"
80
+
81
+ #: ../class-sg-cachepress-admin.php:287
82
+ msgid "CAN'T GET HEADERS"
83
+ msgstr "NO SE PUEDEN OBTENER LOS ENCABEZADOS"
84
+
85
+ #: ../class-sg-cachepress-admin.php:288 ../class-sg-cachepress-admin.php:289 ..
86
+ #: /views/sg-cache.php:66
87
+ msgid "Test URL"
88
+ msgstr "Probando URL"
89
+
90
+ #. Page title
91
+ #: ../class-sg-cachepress-admin.php:302 ../class-sg-cachepress-admin.php:303
92
+ msgid "SuperCacher"
93
+ msgstr "SuperCacher"
94
+
95
+ #: ../views/sg-cache.php:3
96
+ msgid "SuperCacher for WordPress by SiteGround"
97
+ msgstr "SuperCacher para WordPress de SiteGround"
98
+
99
+ #: ../views/sg-cache.php:4
100
+ msgid ""
101
+ "The SuperCacher is a system that allows you to use the SiteGround dynamic "
102
+ "cache and Memcached to optimize the performance of your WordPress. In order "
103
+ "to take advantage of the system you should have the SuperCacher enabled at "
104
+ "your web host plus the required cache options turned on below. For more "
105
+ "information on the different caching options refer to the <a href=\"http:"
106
+ "//www.siteground.com/tutorials/supercacher/\" target=\"_blank\">SuperCacher "
107
+ "Tutorial</a>!"
108
+ msgstr ""
109
+ "El SuperCacher es un sistema que te permite utilizar la memoria caché "
110
+ "dinámica de SiteGround y Memcached para optimizar el rendimiento de tu "
111
+ "WordPress. Con el fin de aprovechar el sistema, debes tener la SuperCacher "
112
+ "habilitado en tu hosting web más las opciones de caché requeridas a "
113
+ "continuación. Para obtener más información sobre las diferentes opciones de "
114
+ "almacenamiento en caché, consultae el <a href=\"http://www.siteground."
115
+ "com/tutorials/supercacher/\" target=\"_blank\"> Tutorial de SuperCacher </a>!"
116
+
117
+ #: ../views/sg-cache.php:8
118
+ msgid "Dynamic Cache Settings"
119
+ msgstr "Configuración de caché dinámica"
120
+
121
+ #: ../views/sg-cache.php:12
122
+ msgid "Dynamic Cache"
123
+ msgstr "Caché dinámica"
124
+
125
+ #: ../views/sg-cache.php:14
126
+ msgid "Enable the Dynamic caching system"
127
+ msgstr "Activar el sistema de almacenamiento en caché dinámica"
128
+
129
+ #: ../views/sg-cache.php:19
130
+ msgid "AutoFlush Cache"
131
+ msgstr "Auto limpieza de caché"
132
+
133
+ #: ../views/sg-cache.php:21
134
+ msgid "Automatically flush the Dynamic cache when you edit your content."
135
+ msgstr "Eliminar automáticamente la caché dinámica al modificar el contenido."
136
+
137
+ #: ../views/sg-cache.php:26
138
+ msgid "Purge Cache"
139
+ msgstr "Limpiar caché"
140
+
141
+ #: ../views/sg-cache.php:30
142
+ msgid "Purge all the data cached by the Dynamic cache."
143
+ msgstr "Eliminar todos los datos almacenados en la caché dinámica."
144
+
145
+ #: ../views/sg-cache.php:35
146
+ msgid "Exclude URLs From Dynamic Caching"
147
+ msgstr "Excluir direcciones URL del almacenamiento en caché dinámica"
148
+
149
+ #: ../views/sg-cache.php:36
150
+ msgid ""
151
+ "Provide a list of your website URLs you would like to exclude from the cache."
152
+ " For example if you would like to exclude: <strong>http://domain."
153
+ "com/path/to/url</strong><br>\n"
154
+ " You can simply input the \"path\" string part of the URL. Then each URL "
155
+ "that consists of it will be excluded. Divide each URL by a new line."
156
+ msgstr ""
157
+ "Proporcionar una lista de direcciones URL de tu web que desees excluir de la "
158
+ "caché. Por ejemplo, si deseas excluir: <strong> http://domain."
159
+ "com/path/to/url </strong> <br> \n"
160
+ "Puedes escribir simplemente la cadena \"path \" de la URL. Entonces se "
161
+ "excluirá cada URL que la contenga. Divide cada URL en una nueva línea."
162
+
163
+ #: ../views/sg-cache.php:46
164
+ msgid "Memcached Settings"
165
+ msgstr "Configuración de Memcached "
166
+
167
+ #: ../views/sg-cache.php:55
168
+ msgid ""
169
+ "Store in the server's memory frequently executed queries to the database for "
170
+ "a faster access on a later use."
171
+ msgstr ""
172
+ "Almacenar en la memoria del servidor con frecuencia ejecutado consultas a la "
173
+ "base de datos para un acceso más rápido en un uso posterior."
174
+
175
+ #: ../views/sg-cache.php:61
176
+ msgid "Dynamic Cache Status"
177
+ msgstr "Estado de la caché dinámica "
178
+
179
+ #: ../views/sg-cache.php:69
180
+ msgid "Status:"
181
+ msgstr "Estado:"
182
+
183
+ #: ../views/sg-cache.php:72
184
+ msgid ""
185
+ "Check if this URL is dynamic or cached. Leave empty for your index or "
186
+ "<strong>/example/</strong> for another page."
187
+ msgstr ""
188
+ "Comprueba si esta URL es dinámica o está almacenada. Déjalo en blanco para "
189
+ "el índice o <strong> /example / </strong> para otra página."
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: Hristo Sg, danielkanchev
3
  Tags: nginx, caching, speed, memcache, memcached, performance, siteground, nginx, supercacher
4
  Requires at least: 3.0.1
5
- Tested up to: 4.3
6
  Stable tag: 1.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -55,6 +55,16 @@ This field allows you to exclude URLs from the cache. This means that if you nee
55
 
56
  == Changelog ==
57
 
 
 
 
 
 
 
 
 
 
 
58
  = Version 2.2.11 =
59
  * Improved compatibility with WP Rocket
60
  * Bug fixes
2
  Contributors: Hristo Sg, danielkanchev
3
  Tags: nginx, caching, speed, memcache, memcached, performance, siteground, nginx, supercacher
4
  Requires at least: 3.0.1
5
+ Tested up to: 4.4
6
  Stable tag: 1.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
55
 
56
  == Changelog ==
57
 
58
+ = Version 2.3.1 =
59
+ * Interface improventes
60
+ * Internationalization support added
61
+ * Spanish translation added by <a href="https://www.siteground.es">SiteGround.es</a>
62
+ * Bulgarian translation added
63
+
64
+ = Version 2.3.0 =
65
+ * Memcached support added
66
+ * Better PHP7 compatibility
67
+
68
  = Version 2.2.11 =
69
  * Improved compatibility with WP Rocket
70
  * Bug fixes
sg-cachepress.php CHANGED
@@ -9,7 +9,7 @@
9
  * @wordpress-plugin
10
  * Plugin Name: SG CachePress
11
  * Description: Through the settings of this plugin you can manage how your Wordpress interracts with NGINX and Memcached.
12
- * Version: 2.2.9
13
  * Author: SiteGround
14
  * Text Domain: sg-cachepress
15
  * Domain Path: /languages
@@ -20,6 +20,13 @@ if ( ! defined( 'WPINC' ) ) {
20
  die;
21
  }
22
 
 
 
 
 
 
 
 
23
  // @todo Consider an autoloader?
24
  require plugin_dir_path( __FILE__ ) . 'class-sg-cachepress.php';
25
  require plugin_dir_path( __FILE__ ) . 'class-sg-cachepress-options.php';
9
  * @wordpress-plugin
10
  * Plugin Name: SG CachePress
11
  * Description: Through the settings of this plugin you can manage how your Wordpress interracts with NGINX and Memcached.
12
+ * Version: 2.3.1
13
  * Author: SiteGround
14
  * Text Domain: sg-cachepress
15
  * Domain Path: /languages
20
  die;
21
  }
22
 
23
+ // Load text Domain
24
+ add_action( 'plugins_loaded', 'sgcachepress_load_textdomain' );
25
+ function sgcachepress_load_textdomain() {
26
+ load_plugin_textdomain( 'sg-cachepress', false, plugin_basename( dirname( __FILE__ ) ) . '/languages' );
27
+ }
28
+
29
+
30
  // @todo Consider an autoloader?
31
  require plugin_dir_path( __FILE__ ) . 'class-sg-cachepress.php';
32
  require plugin_dir_path( __FILE__ ) . 'class-sg-cachepress-options.php';
views/sg-cache.php CHANGED
@@ -1,40 +1,40 @@
1
  <div class="sgwrap">
2
  <div class="box">
3
- <h2>SuperCacher for WordPress by SiteGround</h2>
4
- <p>The SuperCacher is a system that allows you to use the SiteGround dynamic cache and Memcached to optimize the performance of your WordPress. In order to take advantage of the system you should have the SuperCacher enabled at your web host plus the required cache options turned on below. For more information on the different caching options refer to the <a href="http://www.siteground.com/tutorials/supercacher/" target="_blank">SuperCacher Tutorial</a>! </p>
5
  </div>
6
 
7
  <div class="box clear">
8
- <h2>Dynamic Cache Settings</h2>
9
 
10
  <div class="three clear">
11
  <div class="greybox">
12
- <h3>Dynamic Cache</h3>
13
  <a href="" id="sg-cachepress-dynamic-cache-toggle" class="<?php if ( $this->options_handler->get_option('enable_cache') ==1 ) echo 'toggleon'; else echo 'toggleoff'; ?>"></a>
14
- <p id="sg-cachepress-dynamic-cache-text">Enable the Dynamic caching system</p>
15
  <p id="sg-cachepress-dynamic-cache-error" class="error"></p>
16
  </div>
17
 
18
  <div class="greybox">
19
- <h3>AutoFlush Cache</h3>
20
  <a href="" id="sg-cachepress-autoflush-cache-toggle" class="<?php if ( $this->options_handler->get_option('autoflush_cache') ==1 ) echo 'toggleon'; else echo 'toggleoff'; ?>"></a>
21
- <p id="nginxcacheoptimizer-autoflush-cache-text">Automatically flush the Dynamic cache when you edit your content.</p>
22
  <p id="nginxcacheoptimizer-autoflush-cache-error" class="error"></p>
23
  </div>
24
 
25
  <div class="greybox">
26
- <h3>Purge Cache</h3>
27
  <form class="purgebtn" method="post" action="<?php menu_page_url( 'sg-cachepress-purge' ); ?>">
28
- <?php submit_button( __( 'Purge the Cache', 'sg-cachepress' ), 'primary', 'sg-cachepress-purge', false );?>
29
  </form>
30
- <p>Purge all the data cached by the Dynamic cache.</p>
31
  </div>
32
 
33
  </div>
34
  <div class="greybox">
35
- <h3>Exclude URLs From Dynamic Caching</h3>
36
- <p>Provide a list of your website's URLs you would like to exclude from the cache. For example if you'd like to exclude: <strong>http://domain.com/path/to/url</strong><br>
37
- You can provide only a part of the URL. If you input the "path" string part of the URL, then each URL that consists of it will be excluded. Divide each URL by a new line.</p>
38
 
39
  <form method="post" action="<?php menu_page_url( 'sg-cachepress-purge' ); ?>">
40
  <textarea id="sg-cachepress-blacklist-textarea"><?php echo esc_textarea($this->options_handler->get_blacklist()); ?></textarea>
@@ -43,22 +43,22 @@
43
  </div>
44
  </div>
45
  <div class="box">
46
- <h2>Memcached Settings</h2>
47
  <div class="greybox">
48
 
49
  <a href="" id="sg-cachepress-memcached-toggle" class="<?php if ( $this->options_handler->get_option('enable_memcached') ==1 ) echo 'toggleon'; else echo 'toggleoff'; ?>"></a>
50
 
51
- <p id="sg-cachepress-memcached-text">Enable Memcached</p>
52
  <p class="error" id="sg-cachepress-memcached-error"></p>
53
 
54
  <div class="clr"></div>
55
- <p>Store in the server's memory frequently executed queries to the database for a faster access on a later use.</p>
56
  <div class="clr"></div>
57
  </div>
58
  </div>
59
 
60
  <div class="box clear">
61
- <h2>Dynamic Cache Status</h2>
62
  <div class="greybox">
63
 
64
  <form class="purgebtn" method="post" action="<?php menu_page_url( 'sg-cachepress-test' ); ?>" id="cachetest">
@@ -66,10 +66,10 @@
66
  <?php submit_button( __( 'Test URL', 'sg-cachepress' ), 'primary', 'sg-cachepress-test', false );?>
67
  </form>
68
 
69
- <div class="status_test" style="display:none;">Status: <span id="status_test_value"></span></div>
70
 
71
  <div class="clr"></div>
72
- <p>Check if this URL is dynamic or cached. Leave empty for your index or <strong>/example/</strong> for another page.</p>
73
  <div class="clr"></div>
74
  </div>
75
  </div>
1
  <div class="sgwrap">
2
  <div class="box">
3
+ <h2><?php _e( 'SuperCacher for WordPress by SiteGround', 'sg-cachepress' ) ?></h2>
4
+ <p><?php _e( 'The SuperCacher is a system that allows you to use the SiteGround dynamic cache and Memcached to optimize the performance of your WordPress. In order to take advantage of the system you should have the SuperCacher enabled at your web host plus the required cache options turned on below. For more information on the different caching options refer to the <a href="http://www.siteground.com/tutorials/supercacher/" target="_blank">SuperCacher Tutorial</a>!', 'sg-cachepress' ) ?></p>
5
  </div>
6
 
7
  <div class="box clear">
8
+ <h2><?php _e( 'Dynamic Cache Settings', 'sg-cachepress' ) ?></h2>
9
 
10
  <div class="three clear">
11
  <div class="greybox">
12
+ <h3><?php _e( 'Dynamic Cache', 'sg-cachepress' ) ?></h3>
13
  <a href="" id="sg-cachepress-dynamic-cache-toggle" class="<?php if ( $this->options_handler->get_option('enable_cache') ==1 ) echo 'toggleon'; else echo 'toggleoff'; ?>"></a>
14
+ <p id="sg-cachepress-dynamic-cache-text"><?php _e( 'Enable the Dynamic caching system', 'sg-cachepress' ) ?></p>
15
  <p id="sg-cachepress-dynamic-cache-error" class="error"></p>
16
  </div>
17
 
18
  <div class="greybox">
19
+ <h3><?php _e( 'AutoFlush Cache', 'sg-cachepress' ) ?></h3>
20
  <a href="" id="sg-cachepress-autoflush-cache-toggle" class="<?php if ( $this->options_handler->get_option('autoflush_cache') ==1 ) echo 'toggleon'; else echo 'toggleoff'; ?>"></a>
21
+ <p id="nginxcacheoptimizer-autoflush-cache-text"><?php _e( 'Automatically flush the Dynamic cache when you edit your content.', 'sg-cachepress' ) ?></p>
22
  <p id="nginxcacheoptimizer-autoflush-cache-error" class="error"></p>
23
  </div>
24
 
25
  <div class="greybox">
26
+ <h3><?php _e( 'Purge Cache', 'sg-cachepress' ) ?></h3>
27
  <form class="purgebtn" method="post" action="<?php menu_page_url( 'sg-cachepress-purge' ); ?>">
28
+ <?php submit_button( __( 'Purge the Cache', 'sg-cachepress' ), '', 'sg-cachepress-purge', false );?>
29
  </form>
30
+ <p><?php _e( 'Purge all the data cached by the Dynamic cache.', 'sg-cachepress' ) ?></p>
31
  </div>
32
 
33
  </div>
34
  <div class="greybox">
35
+ <h3><?php _e( 'Exclude URLs From Dynamic Caching', 'sg-cachepress' ) ?></h3>
36
+ <p><?php _e( 'Provide a list of your website URLs you would like to exclude from the cache. For example if you would like to exclude: <strong>http://domain.com/path/to/url</strong><br>
37
+ You can simply input the "path" string part of the URL. Then each URL that consists of it will be excluded. Divide each URL by a new line.', 'sg-cachepress' ) ?></p>
38
 
39
  <form method="post" action="<?php menu_page_url( 'sg-cachepress-purge' ); ?>">
40
  <textarea id="sg-cachepress-blacklist-textarea"><?php echo esc_textarea($this->options_handler->get_blacklist()); ?></textarea>
43
  </div>
44
  </div>
45
  <div class="box">
46
+ <h2><?php _e( 'Memcached Settings', 'sg-cachepress' ) ?></h2>
47
  <div class="greybox">
48
 
49
  <a href="" id="sg-cachepress-memcached-toggle" class="<?php if ( $this->options_handler->get_option('enable_memcached') ==1 ) echo 'toggleon'; else echo 'toggleoff'; ?>"></a>
50
 
51
+ <p id="sg-cachepress-memcached-text"><?php _e( 'Enable Memcached', 'sg-cachepress' ) ?></p>
52
  <p class="error" id="sg-cachepress-memcached-error"></p>
53
 
54
  <div class="clr"></div>
55
+ <p><?php _e( 'Store in the server\'s memory frequently executed queries to the database for a faster access on a later use.', 'sg-cachepress' ) ?></p>
56
  <div class="clr"></div>
57
  </div>
58
  </div>
59
 
60
  <div class="box clear">
61
+ <h2><?php _e( 'Dynamic Cache Status', 'sg-cachepress' ) ?></h2>
62
  <div class="greybox">
63
 
64
  <form class="purgebtn" method="post" action="<?php menu_page_url( 'sg-cachepress-test' ); ?>" id="cachetest">
66
  <?php submit_button( __( 'Test URL', 'sg-cachepress' ), 'primary', 'sg-cachepress-test', false );?>
67
  </form>
68
 
69
+ <div class="status_test" style="display:none;"><?php _e( 'Status:', 'sg-cachepress' ) ?> <span id="status_test_value"></span></div>
70
 
71
  <div class="clr"></div>
72
+ <p><?php _e( 'Check if this URL is dynamic or cached. Leave empty for your index or <strong>/example/</strong> for another page.', 'sg-cachepress' ) ?></p>
73
  <div class="clr"></div>
74
  </div>
75
  </div>