PluginProbe
Code Engine – PHP Snippets, AI Functions & Automation for WordPress / 0.3.2
Code Engine – PHP Snippets, AI Functions & Automation for WordPress v0.3.2
0.5.6 0.5.5 0.5.4 0.5.3 0.5.2 0.5.1 0.5.0 0.4.9 0.4.8 0.4.7 0.4.6 trunk 0.0.1 0.0.2 0.2.8 0.2.9 0.3.0 0.3.1 0.3.2 0.3.3 0.3.4 0.3.5 0.3.6 0.3.7 0.3.8 All 32 releases
← All changes | common/issues.php +8 -5 trunk0.3.2 View file →
@@ -1,15 +1,16 @@
1 1 <?php
2 2
3 -if ( !class_exists( 'MeowKit_MWCODE_Issues' ) ) {
3 +if ( !class_exists( 'MeowCommon_Issues' ) ) {
4 4
5 - class MeowKit_MWCODE_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 -
11 + function check_plugins() {
12 +
12 13 // Previous technique to disable caching on the REST API.
13 14 // if ( class_exists( 'LiteSpeed\Core' ) ) {
14 15 // $this->check_litespeed();
15 16 // }
@@ -19,9 +20,9 @@
19 20 do_action( 'litespeed_control_set_nocache', 'Meow Apps API must not be cached.' );
20 21 }
21 22 }
22 23
23 - public function check_litespeed() {
24 + function check_litespeed() {
24 25 // By default, the REST API is cached by Litespeed. Why is that?
25 26 // It is absolutely not a good idea, especially on the admin side.
26 27 $cache_rest = get_option( 'litespeed.conf.cache-rest' );
27 28 if ( $cache_rest ) {
@@ -30,4 +31,6 @@
30 31 }
31 32
32 33 }
33 34 }
35 +
36 +?>