Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

clear cache

  • Loading branch information...
commit f90c6e0a1c5134fd23939cd4593e2bd820b2af57 1 parent 4f88788
@mikejolley mikejolley authored
View
1  readme.txt
@@ -156,6 +156,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
* Tweak - Only use rm=2 for paypal when SSL is enabled, to avoid security warnings when returning to the site.
* Tweak - Show sku in stock reports.
* Tweak - When sending the order as a whole to paypal, send the shipping separately.
+* Tweak - Clear cache along with transients
* Fix - Replacing use of deprecated function get_current_theme() with wp_get_theme()
* Fix - Body classes now correct for WordPress themes with non alphanumeric characters
* Fix - PayPal http_build_query & -> & on some PHP 5.3 servers
View
3  woocommerce-core-functions.php
@@ -877,9 +877,10 @@ function woocommerce_order_terms( $the_term, $next_id, $taxonomy, $index=0, $ter
// no nextid meaning our term is in last position
if( $term_in_level && null === $next_id )
$index = woocommerce_set_term_order($id, $index+1, $taxonomy, true);
+
+ wp_cache_flush();
return $index;
-
}
/**
View
2  woocommerce.php
@@ -1357,6 +1357,8 @@ function clear_product_transients( $post_id = 0 ) {
$wpdb->query("DELETE FROM `$wpdb->options` WHERE `option_name` LIKE ('_transient_wc_product_total_stock_%')");
$wpdb->query("DELETE FROM `$wpdb->options` WHERE `option_name` LIKE ('_transient_wc_average_rating_%')");
}
+
+ wp_cache_flush();
}
/** Body Classes **********************************************************/
Please sign in to comment.
Something went wrong with that request. Please try again.