Skip to content

Commit 378a54e

Browse files
committed
Be more selective in cache clearing
1 parent 0b47467 commit 378a54e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

includes/Generator/Product.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ public static function batch( $amount, array $args = array() ) {
146146
}
147147

148148
// In case multiple batches are being run in one request, refresh the cache data.
149-
RandomRuntimeCache::reset();
149+
RandomRuntimeCache::clear( 'product_cat' );
150+
RandomRuntimeCache::clear( 'product_tag' );
150151

151152
return $product_ids;
152153
}

0 commit comments

Comments
 (0)