Skip to content

Commit

Permalink
*Fix transient timeout names in purge methods
Browse files Browse the repository at this point in the history
  • Loading branch information
pcfreak30 committed Jan 28, 2017
1 parent c77f2e5 commit 9cad5fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/class-rocket-async-css.php
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ public function prune_transients() {
*/
public function prune_term_transients( $term ) {
global $wpdb;
$wpdb->get_results( $wpdb->prepare( "DELETE FROM {$wpdb->options} WHERE option_name LIKE %s OR option_name LIKE %s", "_transient_wp_rocket_async_css_style_term_{$term->term_id}%", "_transient_timeout_wp_rocket_async_css_style_{$term->term_id}%" ) );
$wpdb->get_results( $wpdb->prepare( "DELETE FROM {$wpdb->options} WHERE option_name LIKE %s OR option_name LIKE %s", "_transient_wp_rocket_async_css_style_term_{$term->term_id}%", "_transient_timeout_wp_rocket_async_css_style_term_{$term->term_id}%" ) );
wp_cache_flush();
}

Expand Down Expand Up @@ -798,7 +798,7 @@ public function prune_home_transients() {
*/
public function prune_post_transients( $post ) {
global $wpdb;
$wpdb->get_results( $wpdb->prepare( "DELETE FROM {$wpdb->options} WHERE option_name LIKE %s OR option_name LIKE %s", "_transient_wp_rocket_async_css_style_post_{$post->ID}%", "_transient_timeout_wp_rocket_async_css_style_{$post->ID}%" ) );
$wpdb->get_results( $wpdb->prepare( "DELETE FROM {$wpdb->options} WHERE option_name LIKE %s OR option_name LIKE %s", "_transient_wp_rocket_async_css_style_post_{$post->ID}%", "_transient_timeout_wp_rocket_async_css_style_post_{$post->ID}%" ) );
wp_cache_flush();
}

Expand Down

0 comments on commit 9cad5fd

Please sign in to comment.