We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb21ea7 commit b3115bcCopy full SHA for b3115bc
includes/class-wc-cache-helper.php
@@ -94,7 +94,7 @@ public static function get_cache_prefix( $group ) {
94
$prefix = wp_cache_get( 'wc_' . $group . '_cache_prefix', $group );
95
96
if ( false === $prefix ) {
97
- $prefix = 1;
+ $prefix = microtime();
98
wp_cache_set( 'wc_' . $group . '_cache_prefix', $prefix, $group );
99
}
100
@@ -107,7 +107,7 @@ public static function get_cache_prefix( $group ) {
107
* @param string $group Group of cache to clear.
108
*/
109
public static function incr_cache_prefix( $group ) {
110
- wp_cache_incr( 'wc_' . $group . '_cache_prefix', 1, $group );
+ wp_cache_set( 'wc_' . $group . '_cache_prefix', microtime(), $group );
111
112
113
/**
0 commit comments