Skip to content

Commit

Permalink
Merge pull request #229 from rtCamp/fix/fast-cgi-purge
Browse files Browse the repository at this point in the history
Fix timeout issue on FastCGI cache purge
  • Loading branch information
chandrapatel authored Jan 7, 2020
2 parents 84679d2 + a3cda7d commit d53dd39
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions admin/class-purger.php
Original file line number Diff line number Diff line change
Expand Up @@ -1235,9 +1235,8 @@ public function unlink_recursive( $dir, $delete_root_too ) {
return;
}

$obj = readdir( $dh );

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

if ( '.' === $obj || '..' === $obj ) {
continue;
Expand Down

0 comments on commit d53dd39

Please sign in to comment.