Skip to content

Commit f49b768

Browse files
committed
Merge branch 'master' of github.com:bluehost/endurance-page-cache
2 parents db4ed24 + e182d57 commit f49b768

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1-
# endurance-page-cache
1+
<a href="https://endurance.com/">
2+
<img src="https://bluehost.com/resources/logos/endurance.svg" alt="Endurance Logo" title="Endurance" align="right" height="42" />
3+
</a>
4+
5+
# Endurance Page Cache
6+
[![Version Number](https://img.shields.io/github/v/release/bluehost/endurance-page-cache?color=21a0ed&labelColor=333333)](https://github.com/bluehost/endurance-page-cache/releases)
7+
[![License](https://img.shields.io/github/license/bluehost/endurance-page-cache?labelColor=333333&color=666666)](https://raw.githubusercontent.com/bluehost/endurance-page-cache/master/license.txt)
8+
9+
Endurance Page Cache adds basic file-based caching to WordPress, as well as more advanced caching solutions in nginx and Cloudflare. EPC is designed to run best on Endurance systems and your mileage may vary.

endurance-page-cache.php

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,6 @@ class Endurance_Page_Cache {
7171
*/
7272
public $cloudflare_tier = 'basic';
7373

74-
/**
75-
* Brands supporting cloudflare (from mm_brand option).
76-
*
77-
* @var array
78-
*/
79-
public $cloudflare_support = array( 'BlueHost' );
80-
8174
/**
8275
* Whether or not to force a purge.
8376
*
@@ -1487,10 +1480,7 @@ protected function get_triggers( $include_duplicates = false ) {
14871480
protected function udev_cache_purge( $resources = array(), $override_services = array() ) {
14881481
global $wp_version;
14891482

1490-
$brand = get_option( 'mm_brand' );
1491-
14921483
if ( $this->use_file_cache()
1493-
|| ! in_array( $brand, $this->cloudflare_support, true )
14941484
|| false === $this->cloudflare_enabled
14951485
) {
14961486
return;
@@ -1503,10 +1493,10 @@ protected function udev_cache_purge( $resources = array(), $override_services =
15031493
}
15041494

15051495
$hosts = array( wp_parse_url( home_url(), PHP_URL_HOST ) );
1506-
$services = ! empty( $override_services ) ? $override_services : self::$udev_api_services;
1496+
$services = ! empty( $override_services ) ? $override_services : $this->udev_api_services;
15071497

15081498
if ( $services['cf'] && $this->cloudflare_enabled ) {
1509-
$services['cf'] = $this->cloudflare_enabled;
1499+
$services['cf'] = $this->cloudflare_tier;
15101500
}
15111501

15121502
wp_remote_post(

0 commit comments

Comments
 (0)