Version Description
Download this release
Release Info
Developer | Hristo Sg |
Plugin | SG Optimizer |
Version | 2.3.2 |
Comparing to | |
See all releases |
Code changes from version 2.3.1 to 2.3.2
- class-sg-cachepress-supercacher.php +12 -0
- readme.txt +3 -0
- sg-cachepress.php +1 -1
class-sg-cachepress-supercacher.php
CHANGED
@@ -65,6 +65,16 @@ class SG_CachePress_Supercacher {
|
|
65 |
|
66 |
$this->assign_hooks_for_autoflush();
|
67 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
|
69 |
/**
|
70 |
* Call the cache server to purge the cache.
|
@@ -111,6 +121,8 @@ class SG_CachePress_Supercacher {
|
|
111 |
$response = fgets( $cache_server_socket );
|
112 |
|
113 |
fclose( $cache_server_socket );
|
|
|
|
|
114 |
|
115 |
// Only die (or notify) if doing an Ajax request
|
116 |
if ( $sg_cachepress_supercacher->environment->action_data_is( 'sg-cachepress-purge' ) ) {
|
65 |
|
66 |
$this->assign_hooks_for_autoflush();
|
67 |
}
|
68 |
+
|
69 |
+
/**
|
70 |
+
* Flush Memcache or Memcached
|
71 |
+
*
|
72 |
+
* @return boolean
|
73 |
+
*/
|
74 |
+
public static function flush_memcache()
|
75 |
+
{
|
76 |
+
return wp_cache_flush();
|
77 |
+
}
|
78 |
|
79 |
/**
|
80 |
* Call the cache server to purge the cache.
|
121 |
$response = fgets( $cache_server_socket );
|
122 |
|
123 |
fclose( $cache_server_socket );
|
124 |
+
|
125 |
+
self::flush_memcache();
|
126 |
|
127 |
// Only die (or notify) if doing an Ajax request
|
128 |
if ( $sg_cachepress_supercacher->environment->action_data_is( 'sg-cachepress-purge' ) ) {
|
readme.txt
CHANGED
@@ -55,6 +55,9 @@ This field allows you to exclude URLs from the cache. This means that if you nee
|
|
55 |
|
56 |
== Changelog ==
|
57 |
|
|
|
|
|
|
|
58 |
= Version 2.3.1 =
|
59 |
* Interface improventes
|
60 |
* Internationalization support added
|
55 |
|
56 |
== Changelog ==
|
57 |
|
58 |
+
= Version 2.3.2 =
|
59 |
+
* Fixed bug with Memcached cache purge
|
60 |
+
|
61 |
= Version 2.3.1 =
|
62 |
* Interface improventes
|
63 |
* Internationalization support added
|
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.3.
|
13 |
* Author: SiteGround
|
14 |
* Text Domain: sg-cachepress
|
15 |
* Domain Path: /languages
|
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.2
|
13 |
* Author: SiteGround
|
14 |
* Text Domain: sg-cachepress
|
15 |
* Domain Path: /languages
|