PluginProbe
Meow Gallery / 4.2.2
Meow Gallery v4.2.2
5.5.5 5.5.4 5.5.3 5.5.2 5.5.1 5.5.0 5.4.9 5.4.8 5.4.7 4.1.5 4.1.6 4.1.7 4.1.8 4.1.9 4.2.0 4.2.1 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6 4.2.7 4.2.8 4.2.9 4.3.0 All 157 releases
← All changes | common/issues.php +9 -13 5.5.5 → 4.2.2 View file →
@@ -1,27 +1,21 @@
1 1 <?php
2 2
3 -if ( !class_exists( 'MeowKit_MGL_Issues' ) ) {
3 +if ( !class_exists( 'MeowCommon_Issues' ) ) {
4 4
5 - class MeowKit_MGL_Issues {
5 + class MeowCommon_Issues {
6 +
6 7 public function __construct( $prefix, $mainfile, $domain ) {
7 8 $this->check_plugins();
8 9 }
9 10
10 - public function check_plugins() {
11 -
12 - // Previous technique to disable caching on the REST API.
13 - // if ( class_exists( 'LiteSpeed\Core' ) ) {
14 - // $this->check_litespeed();
15 - // }
16 -
17 - // Recommended technique to disable caching on the REST API by the Litespeed team.
18 - if ( defined( 'LSCWP_V' ) ) {
19 - do_action( 'litespeed_control_set_nocache', 'Meow Apps API must not be cached.' );
11 + function check_plugins() {
12 + if ( class_exists( 'LiteSpeed\Core' ) ) {
13 + $this->check_litespeed();
20 14 }
21 15 }
22 16
23 - public function check_litespeed() {
17 + function check_litespeed() {
24 18 // By default, the REST API is cached by Litespeed. Why is that?
25 19 // It is absolutely not a good idea, especially on the admin side.
26 20 $cache_rest = get_option( 'litespeed.conf.cache-rest' );
27 21 if ( $cache_rest ) {
@@ -30,4 +24,6 @@
30 24 }
31 25
32 26 }
33 27 }
28 +
29 +?>