LiteSpeed Cache - Version 2.2.5

Version Description

  • May 14 2018 =
  • [IAPI] Image Optimization New Asian Image Optimization server (AS2).
  • [INTEGRATION] Removed wpForo 3rd party file. (@massimod)
Download this release

Release Info

Developer LiteSpeedTech
Plugin Icon 128x128 LiteSpeed Cache
Version 2.2.5
Comparing to
See all releases

Code changes from version 2.2.4 to 2.2.5

inc/litespeed-cache.class.php CHANGED
@@ -19,7 +19,7 @@ class LiteSpeed_Cache
19
  private static $_instance ;
20
 
21
  const PLUGIN_NAME = 'litespeed-cache' ;
22
- const PLUGIN_VERSION = '2.2.4' ;
23
 
24
  const PAGE_EDIT_HTACCESS = 'lscache-edit-htaccess' ;
25
 
19
  private static $_instance ;
20
 
21
  const PLUGIN_NAME = 'litespeed-cache' ;
22
+ const PLUGIN_VERSION = '2.2.5' ;
23
 
24
  const PAGE_EDIT_HTACCESS = 'lscache-edit-htaccess' ;
25
 
includes/litespeed-cache.class.php CHANGED
@@ -19,7 +19,7 @@ class LiteSpeed_Cache
19
  private static $_instance ;
20
 
21
  const PLUGIN_NAME = 'litespeed-cache' ;
22
- const PLUGIN_VERSION = '2.2.4' ;
23
 
24
  const PAGE_EDIT_HTACCESS = 'lscache-edit-htaccess' ;
25
 
19
  private static $_instance ;
20
 
21
  const PLUGIN_NAME = 'litespeed-cache' ;
22
+ const PLUGIN_VERSION = '2.2.5' ;
23
 
24
  const PAGE_EDIT_HTACCESS = 'lscache-edit-htaccess' ;
25
 
litespeed-cache.php CHANGED
@@ -15,7 +15,7 @@
15
  * Plugin Name: LiteSpeed Cache
16
  * Plugin URI: https://www.litespeedtech.com/products/cache-plugins/wordpress-acceleration
17
  * Description: WordPress plugin to connect to LSCache on LiteSpeed Web Server.
18
- * Version: 2.2.4
19
  * Author: LiteSpeed Technologies
20
  * Author URI: https://www.litespeedtech.com
21
  * License: GPLv3
15
  * Plugin Name: LiteSpeed Cache
16
  * Plugin URI: https://www.litespeedtech.com/products/cache-plugins/wordpress-acceleration
17
  * Description: WordPress plugin to connect to LSCache on LiteSpeed Web Server.
18
+ * Version: 2.2.5
19
  * Author: LiteSpeed Technologies
20
  * Author URI: https://www.litespeedtech.com
21
  * License: GPLv3
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: LiteSpeedTech
3
  Tags: cache, wp-cache, litespeed, super cache, http2, total cache, optimize, object cache, redis, memcached, lazy load, database cleaner
4
  Requires at least: 4.0
5
  Tested up to: 4.9.5
6
- Stable tag: 2.2.4
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl.html
9
 
@@ -243,7 +243,6 @@ Click on the `Advanced View` link at the top of the page, and several more tabs
243
  * [Better WP Minify](https://wordpress.org/plugins/bwp-minify/)
244
  * [WP Touch](https://wordpress.org/plugins/wptouch/)
245
  * [Theme My Login](https://wordpress.org/plugins/theme-my-login/)
246
- * [wpForo](https://wordpress.org/plugins/wpforo/)
247
  * [WPLister](https://www.wplab.com/plugins/wp-lister/)
248
  * [WP-PostRatings](https://wordpress.org/plugins/wp-postratings/)
249
  * [Avada 5.1 RC1+](https://avada.theme-fusion.com/)
@@ -257,6 +256,10 @@ Click on the `Advanced View` link at the top of the page, and several more tabs
257
 
258
  == Changelog ==
259
 
 
 
 
 
260
  = 2.2.4 - May 7 2018 =
261
  * [IMPROVEMENT] Improved compatibility with themes using the same js_min library. (#129093 @Darren)
262
  * [BUGFIX] Fixed a bug when checking image path for dynamic files. (@miladk)
3
  Tags: cache, wp-cache, litespeed, super cache, http2, total cache, optimize, object cache, redis, memcached, lazy load, database cleaner
4
  Requires at least: 4.0
5
  Tested up to: 4.9.5
6
+ Stable tag: 2.2.5
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl.html
9
 
243
  * [Better WP Minify](https://wordpress.org/plugins/bwp-minify/)
244
  * [WP Touch](https://wordpress.org/plugins/wptouch/)
245
  * [Theme My Login](https://wordpress.org/plugins/theme-my-login/)
 
246
  * [WPLister](https://www.wplab.com/plugins/wp-lister/)
247
  * [WP-PostRatings](https://wordpress.org/plugins/wp-postratings/)
248
  * [Avada 5.1 RC1+](https://avada.theme-fusion.com/)
256
 
257
  == Changelog ==
258
 
259
+ = 2.2.5 - May 14 2018 =
260
+ * [IAPI] <strong>Image Optimization</strong> New Asian Image Optimization server (AS2).
261
+ * [INTEGRATION] Removed wpForo 3rd party file. (@massimod)
262
+
263
  = 2.2.4 - May 7 2018 =
264
  * [IMPROVEMENT] Improved compatibility with themes using the same js_min library. (#129093 @Darren)
265
  * [BUGFIX] Fixed a bug when checking image path for dynamic files. (@miladk)
thirdparty/lscwp-3rd-wpforo.cls.php DELETED
@@ -1,157 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * The Third Party integration with the wpForo plugin.
5
- *
6
- * @since 1.0.15
7
- * @package LiteSpeed_Cache
8
- * @subpackage LiteSpeed_Cache/thirdparty
9
- * @author LiteSpeed Technologies <info@litespeedtech.com>
10
- */
11
- if ( ! defined('ABSPATH') ) {
12
- die() ;
13
- }
14
-
15
- LiteSpeed_Cache_API::register('LiteSpeed_Cache_ThirdParty_WpForo') ;
16
- if ( defined('WPFORO_VERSION') ) {
17
- add_action('wpforo_actions', 'LiteSpeed_Cache_ThirdParty_WpForo::purge_tag') ;
18
- }
19
-
20
- class LiteSpeed_Cache_ThirdParty_WpForo
21
- {
22
- const CACHETAG_COMMON = 'WF' ;
23
- const CACHETAG_FRONTPAGE = 'WF_F' ;
24
- const CACHETAG_FORUM = 'WF_F.' ;
25
- const CACHETAG_TOPIC = 'WF_T.' ;
26
-
27
- /**
28
- * Detects if wpForo is installed.
29
- *
30
- * @since 1.0.15
31
- * @access public
32
- */
33
- public static function detect()
34
- {
35
- if ( defined('WPFORO_VERSION') ) {
36
- LiteSpeed_Cache_API::hook_tag('LiteSpeed_Cache_ThirdParty_WpForo::cache_tags') ;
37
- }
38
- }
39
-
40
- /**
41
- * Purge tags based on hooks
42
- */
43
- public static function purge_tag()
44
- {
45
- if( ! empty($_POST) ) {
46
- add_action('wpforo_after_add_topic', 'LiteSpeed_Cache_ThirdParty_WpForo::purge_tag_topic_add') ;
47
- add_action('wpforo_start_edit_topic', 'LiteSpeed_Cache_ThirdParty_WpForo::purge_tag_topic_update') ;
48
- add_action('wpforo_after_delete_topic', 'LiteSpeed_Cache_ThirdParty_WpForo::purge_tag_topic_update') ;
49
-
50
- add_action('wpforo_after_add_post', 'LiteSpeed_Cache_ThirdParty_WpForo::purge_tag_post_add', 10, 2) ;
51
- add_action('wpforo_after_edit_post', 'LiteSpeed_Cache_ThirdParty_WpForo::purge_tag_topic_update') ;
52
- add_action('wpforo_after_delete_post', 'LiteSpeed_Cache_ThirdParty_WpForo::purge_tag_topic_update') ;
53
- }
54
- // for those which doesn't have hooks
55
- add_action('shutdown', 'LiteSpeed_Cache_ThirdParty_WpForo::wpforo_hook_when_shutdown', -1) ;// use -1 to make evoked before send tag header
56
- }
57
-
58
- /**
59
- * Shutdown purge
60
- */
61
- public static function wpforo_hook_when_shutdown() {
62
- global $wpforo ;
63
- // admin forum actions
64
- if ( wpforo_is_admin() && isset($_GET['page']) && $_GET['page'] == 'wpforo-forums' ) {
65
- if( (isset($_POST['wpforo_submit']) && isset($_REQUEST['forum']) && isset($_GET['action']))
66
- || (isset($_POST['wpforo_delete']) && $_GET['action'] == 'del')
67
- || (isset($_POST['forums_hierarchy_submit'])) ) {
68
- LiteSpeed_Cache_API::purge(self::CACHETAG_COMMON) ;
69
- }
70
- }
71
-
72
- ##Moderation
73
- if( wpforo_is_admin() && isset($_GET['page']) && $_GET['page'] == 'wpforo-moderations' ) {
74
- $pids = array() ;
75
- if( !empty($_GET['id']) && ($pid = wpforo_bigintval($_GET['id'])) ){
76
- $pids = (array) $pid ;
77
- }
78
- elseif( !empty($_GET['ids']) && ($ids = trim($_GET['ids'])) ){
79
- $ids = explode(',', urldecode($ids)) ;
80
- $pids = array_map('wpforo_bigintval', array_filter($ids)) ;
81
- }
82
- $pids = array_diff($pids, (array) $wpforo->current_userid) ;
83
- if( ! empty($pids) ) {
84
- foreach ($pids as $pid){
85
- $post = $wpforo->post->get_post($pid) ;
86
- $topicid = $post['topicid'] ;
87
- self::purge_tag_topic($topicid) ;
88
- }
89
- }
90
-
91
- }
92
- }
93
-
94
- /**
95
- * Purge current topic, and all forums/parent forums/forum homepage
96
- */
97
- public static function purge_tag_topic($topicid)
98
- {
99
- LiteSpeed_Cache_API::purge(self::CACHETAG_TOPIC . $topicid) ;
100
- LiteSpeed_Cache_API::purge(self::CACHETAG_FORUM) ;
101
- LiteSpeed_Cache_API::purge(self::CACHETAG_FRONTPAGE) ;
102
- }
103
-
104
- /**
105
- * Purge topic when a topic is added
106
- */
107
- public static function purge_tag_topic_add($args)
108
- {
109
- // LiteSpeed_Cache_API::purge(self::CACHETAG_FORUM . $args['forumid']) ;
110
- LiteSpeed_Cache_API::purge(self::CACHETAG_FORUM) ;
111
- LiteSpeed_Cache_API::purge(self::CACHETAG_FRONTPAGE) ;
112
- }
113
-
114
- /**
115
- * Purge topic when a topic is modified
116
- */
117
- public static function purge_tag_topic_update($args)
118
- {
119
- if( ! empty($args['topicid']) ) {
120
- self::purge_tag_topic($args['topicid']) ;
121
- }
122
- }
123
-
124
- /**
125
- * Purge topic when a post is added
126
- */
127
- public static function purge_tag_post_add($post, $topic)
128
- {
129
- if( ! empty($topic['topicid']) ) {
130
- self::purge_tag_topic($topic['topicid']) ;
131
- }
132
- }
133
-
134
- /**
135
- * Send cache tags for current page
136
- */
137
- public static function cache_tags()
138
- {
139
- global $wpforo ;
140
- if( ! empty($wpforo->current_object['template']) ) {
141
- if( $wpforo->current_object['template'] == 'forum' ) {
142
- LiteSpeed_Cache_API::tag_add(self::CACHETAG_FRONTPAGE) ;
143
- LiteSpeed_Cache_API::tag_add(self::CACHETAG_COMMON) ;
144
- }
145
- if( $wpforo->current_object['template'] == 'topic' ) {
146
- LiteSpeed_Cache_API::tag_add(self::CACHETAG_FORUM . $wpforo->current_object['forum']['forumid']) ;
147
- LiteSpeed_Cache_API::tag_add(self::CACHETAG_FORUM) ;
148
- LiteSpeed_Cache_API::tag_add(self::CACHETAG_COMMON) ;
149
- }
150
- if( $wpforo->current_object['template'] == 'post' ) {
151
- LiteSpeed_Cache_API::tag_add(self::CACHETAG_TOPIC . $wpforo->current_object['topic']['topicid']) ;
152
- LiteSpeed_Cache_API::tag_add(self::CACHETAG_COMMON) ;
153
- }
154
- }
155
- }
156
-
157
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
thirdparty/lscwp-registry-3rd.php CHANGED
@@ -28,7 +28,6 @@ $thirdparty_list = array(
28
  'wplister',
29
  'wptouch',
30
  'yith-wishlist',
31
- 'wpforo',
32
  'avada',
33
  'wp-postratings',
34
  ) ;
28
  'wplister',
29
  'wptouch',
30
  'yith-wishlist',
 
31
  'avada',
32
  'wp-postratings',
33
  ) ;