Skip to content

Commit d53dd39

Browse files
authored
Merge pull request #229 from rtCamp/fix/fast-cgi-purge
Fix timeout issue on FastCGI cache purge
2 parents 84679d2 + a3cda7d commit d53dd39

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

admin/class-purger.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -1235,9 +1235,8 @@ public function unlink_recursive( $dir, $delete_root_too ) {
12351235
return;
12361236
}
12371237

1238-
$obj = readdir( $dh );
1239-
1240-
while ( false !== $obj ) {
1238+
// phpcs:ignore -- WordPress.CodeAnalysis.AssignmentInCondition.FoundInWhileCondition -- Variable assignment required for recursion.
1239+
while ( false !== ( $obj = readdir( $dh ) ) ) {
12411240

12421241
if ( '.' === $obj || '..' === $obj ) {
12431242
continue;

0 commit comments

Comments
 (0)