Skip to content

Commit

Permalink
Update field-tshirt.php
Browse files Browse the repository at this point in the history
Fix linting.
  • Loading branch information
pkevan authored Oct 10, 2023
1 parent 473bbc4 commit e34b142
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function prime_report_cache() {

restore_current_blog();
// Reset DB query log & object cache every 10 loops, to reduce memory usage.
if ( $i % 10 == 0 ) {
if ( 0 == $i % 10 ) {
self::reset_db_query_log();
self::reset_local_object_cache();
}
Expand Down Expand Up @@ -122,7 +122,7 @@ public function reset_local_object_cache() {
$wp_object_cache->cache = array();

if ( method_exists( $wp_object_cache, '__remoteset' ) ) {
$wp_object_cache->__remoteset(); // important
$wp_object_cache->__remoteset();
}
}

Expand Down

0 comments on commit e34b142

Please sign in to comment.