Merge branch 'master' of github:/petermolnar/wp-ffpc
Conflicts: wp-ffpc-class.php
This commit is contained in:
commit
eac45ed95e
2 changed files with 5 additions and 5 deletions
|
@ -8,7 +8,7 @@ defined('ABSPATH') or die("Walk away.");
|
||||||
|
|
||||||
function __wp_ffpc_debug__ ( $text ) {
|
function __wp_ffpc_debug__ ( $text ) {
|
||||||
if ( defined('WP_FFPC__DEBUG_MODE') && WP_FFPC__DEBUG_MODE == true)
|
if ( defined('WP_FFPC__DEBUG_MODE') && WP_FFPC__DEBUG_MODE == true)
|
||||||
error_log ( __FILE__ . ': ' . $text );
|
error_log ( 'WP_FFPC_ACache' . ': ' . $text );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* check for WP cache enabled*/
|
/* check for WP cache enabled*/
|
||||||
|
@ -155,7 +155,7 @@ foreach ( $wp_ffpc_keys as $internal => $key ) {
|
||||||
$value = $wp_ffpc_backend->get ( $key );
|
$value = $wp_ffpc_backend->get ( $key );
|
||||||
|
|
||||||
if ( ! $value ) {
|
if ( ! $value ) {
|
||||||
__wp_ffpc_debug__("No cached data foundd");
|
__wp_ffpc_debug__("No cached data found");
|
||||||
/* does not matter which is missing, we need both, if one fails, no caching */
|
/* does not matter which is missing, we need both, if one fails, no caching */
|
||||||
wp_ffpc_start();
|
wp_ffpc_start();
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -412,8 +412,8 @@ class WP_FFPC extends WP_FFPC_ABSTRACT {
|
||||||
$page_wc_checkout=str_replace( home_url(), '', wc_get_page_permalink( 'checkout' ) );
|
$page_wc_checkout=str_replace( home_url(), '', wc_get_page_permalink( 'checkout' ) );
|
||||||
$page_wc_myaccount=str_replace( home_url(), '', wc_get_page_permalink( 'myaccount' ) );
|
$page_wc_myaccount=str_replace( home_url(), '', wc_get_page_permalink( 'myaccount' ) );
|
||||||
$page_wc_cart=str_replace( home_url(), '', wc_get_page_permalink( 'cart' ) );
|
$page_wc_cart=str_replace( home_url(), '', wc_get_page_permalink( 'cart' ) );
|
||||||
$this->options['nocache_woocommerce_url'] = '^'.$page_wc_checkout.'|^'.$page_wc_myaccount.'|^'.$page_wc_cart;
|
$wcapi='^/wc-api|^/\?wc-api=';
|
||||||
|
$this->options['nocache_woocommerce_url'] = '^'.$page_wc_checkout.'|^'.$page_wc_myaccount.'|^'.$page_wc_cart.'|'.$wcapi;
|
||||||
} else {
|
} else {
|
||||||
$this->options['nocache_woocommerce_url'] = '';
|
$this->options['nocache_woocommerce_url'] = '';
|
||||||
}
|
}
|
||||||
|
@ -1364,4 +1364,4 @@ class WP_FFPC extends WP_FFPC_ABSTRACT {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
endif;
|
endif;
|
||||||
|
|
Loading…
Reference in a new issue