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 7.0.5 7.0.6 7.0.7
media-cleaner / common / issues.php
media-cleaner / common Last commit date
admin.php 1 month ago helpers.php 5 months ago issues.php 7 months ago news.php 7 months ago ratings.php 7 months ago releases.txt 2 years ago rest.php 1 month ago
issues.php
34 lines
1 <?php
2
3 if ( !class_exists( 'MeowKit_WPMC_Issues' ) ) {
4
5 class MeowKit_WPMC_Issues {
6 public function __construct( $prefix, $mainfile, $domain ) {
7 $this->check_plugins();
8 }
9
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.' );
20 }
21 }
22
23 public function check_litespeed() {
24 // By default, the REST API is cached by Litespeed. Why is that?
25 // It is absolutely not a good idea, especially on the admin side.
26 $cache_rest = get_option( 'litespeed.conf.cache-rest' );
27 if ( $cache_rest ) {
28 update_option( 'litespeed.conf.cache-rest', 0 );
29 }
30 }
31
32 }
33 }
34