| @@ -1,16 +1,15 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -if ( !class_exists( 'MeowCommon_Issues' ) ) { | |
| 3 | +if ( !class_exists( 'MeowKit_MWCODE_Issues' ) ) { | |
| 4 | 4 | |
| 5 | - class MeowCommon_Issues { | |
| 6 | - | |
| 5 | + class MeowKit_MWCODE_Issues { | |
| 7 | 6 | public function __construct( $prefix, $mainfile, $domain ) { |
| 8 | 7 | $this->check_plugins(); |
| 9 | 8 | } |
| 10 | 9 | |
| 11 | - function check_plugins() { | |
| 12 | - | |
| 10 | + public function check_plugins() { | |
| 11 | + | |
| 13 | 12 | // Previous technique to disable caching on the REST API. |
| 14 | 13 | // if ( class_exists( 'LiteSpeed\Core' ) ) { |
| 15 | 14 | // $this->check_litespeed(); |
| 16 | 15 | // } |
| @@ -20,9 +19,9 @@ | ||
| 20 | 19 | do_action( 'litespeed_control_set_nocache', 'Meow Apps API must not be cached.' ); |
| 21 | 20 | } |
| 22 | 21 | } |
| 23 | 22 | |
| 24 | - function check_litespeed() { | |
| 23 | + public function check_litespeed() { | |
| 25 | 24 | // By default, the REST API is cached by Litespeed. Why is that? |
| 26 | 25 | // It is absolutely not a good idea, especially on the admin side. |
| 27 | 26 | $cache_rest = get_option( 'litespeed.conf.cache-rest' ); |
| 28 | 27 | if ( $cache_rest ) { |
| @@ -31,6 +30,4 @@ | ||
| 31 | 30 | } |
| 32 | 31 | |
| 33 | 32 | } |
| 34 | 33 | } |
| 35 | - | |
| 36 | -?> | |