img
4 years ago
admin.php
4 years ago
helpers.php
4 years ago
issues.php
4 years ago
ratings.php
4 years ago
releases.txt
4 years ago
rest.php
4 years ago
issues.php
29 lines
| 1 | <?php |
| 2 | |
| 3 | if ( !class_exists( 'MeowCommon_Issues' ) ) { |
| 4 | |
| 5 | class MeowCommon_Issues { |
| 6 | |
| 7 | public function __construct( $prefix, $mainfile, $domain ) { |
| 8 | $this->check_plugins(); |
| 9 | } |
| 10 | |
| 11 | function check_plugins() { |
| 12 | if ( class_exists( 'LiteSpeed\Core' ) ) { |
| 13 | $this->check_litespeed(); |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | function check_litespeed() { |
| 18 | // By default, the REST API is cached by Litespeed. Why is that? |
| 19 | // It is absolutely not a good idea, especially on the admin side. |
| 20 | $cache_rest = get_option( 'litespeed.conf.cache-rest' ); |
| 21 | if ( $cache_rest ) { |
| 22 | update_option( 'litespeed.conf.cache-rest', 0 ); |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | ?> |