Edit File by line
/home/barbar84/www/wp-conte.../themes/Divi/core/componen.../lib
File: BluehostCache.php
<?php
[0] Fix | Delete
[1] Fix | Delete
if ( ! class_exists( 'Endurance_Page_Cache' ) ) {
[2] Fix | Delete
return;
[3] Fix | Delete
}
[4] Fix | Delete
[5] Fix | Delete
// https://github.com/bluehost/endurance-page-cache
[6] Fix | Delete
class ET_Core_LIB_BluehostCache extends Endurance_Page_Cache {
[7] Fix | Delete
[8] Fix | Delete
private static $_instance;
[9] Fix | Delete
[10] Fix | Delete
public function __construct() {
[11] Fix | Delete
$this->purged = array();
[12] Fix | Delete
$this->trigger = null;
[13] Fix | Delete
$this->cache_level = get_option( 'endurance_cache_level', 2 );
[14] Fix | Delete
$this->cache_dir = WP_CONTENT_DIR . '/endurance-page-cache';
[15] Fix | Delete
$this->cache_exempt = array( 'wp-admin', '.', 'checkout', 'cart', 'wp-json', '%', '=', '@', '&', ':', ';', );
[16] Fix | Delete
}
[17] Fix | Delete
[18] Fix | Delete
public static function get_instance() {
[19] Fix | Delete
if ( null === self::$_instance ) {
[20] Fix | Delete
self::$_instance = new self;
[21] Fix | Delete
}
[22] Fix | Delete
[23] Fix | Delete
return self::$_instance;
[24] Fix | Delete
}
[25] Fix | Delete
[26] Fix | Delete
public function clear( $post_id = '' ) {
[27] Fix | Delete
if ( '' !== $post_id && method_exists( $this, 'purge_single' ) ) {
[28] Fix | Delete
$this->purge_single( get_the_permalink( $post_id ) );
[29] Fix | Delete
} else if ( '' === $post_id && method_exists( $this, 'purge_all' ) ) {
[30] Fix | Delete
$this->purge_all();
[31] Fix | Delete
}
[32] Fix | Delete
}
[33] Fix | Delete
}
[34] Fix | Delete
[35] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function