PluginProbe
SEO Engine – Smart SEO with AI, Schema & Redirection for WordPress / 0.9.4
SEO Engine – Smart SEO with AI, Schema & Redirection for WordPress v0.9.4
0.9.4 0.9.3 0.9.2 0.9.1 0.9.0 0.8.9 0.8.8 0.8.7 0.8.6 0.8.5 0.8.4 0.8.2 0.8.1 0.7.9 0.8.0 0.7.7 0.7.8 0.7.6 0.7.5 0.7.4 0.7.3 0.7.2 0.7.1 0.7.0 0.6.5 All 88 releases
seo-engine / common / issues.php

issues.php in SEO Engine – Smart SEO with AI, Schema & Redirection for WordPress 0.9.4, at common/issues.php

34 lines 976 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 if ( !class_exists( 'MeowKit_MWSEO_Issues' ) ) {
4
5 class MeowKit_MWSEO_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