all repos — wp-ffpc @ b19e446e0f8ef9c4280a5e20c277d3e893b6c189

Merge pull request #50 from gablau/master

Some fix
Peter Molnar hello@petermolnar.net
Tue, 27 Sep 2016 09:10:06 +0100
commit

b19e446e0f8ef9c4280a5e20c277d3e893b6c189

parent

87b2f986a1f50cdf93fe3e62ab9f13be44ac99be

2 files changed, 4 insertions(+), 3 deletions(-)

jump to
M wp-ffpc-acache.phpwp-ffpc-acache.php

@@ -8,7 +8,7 @@ */

function __wp_ffpc_debug__ ( $text ) { 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*/

@@ -155,7 +155,7 @@ $key = $wp_ffpc_backend->key ( $key );

$value = $wp_ffpc_backend->get ( $key ); 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 */ wp_ffpc_start(); return;
M wp-ffpc-class.phpwp-ffpc-class.php

@@ -414,7 +414,8 @@ if ( class_exists( 'WooCommerce' ) ) {

$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_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 { $this->options['nocache_woocommerce_url'] = '';