Skip to content

Commit

Permalink
Fix FastCGI timeout on purge cache
Browse files Browse the repository at this point in the history
  • Loading branch information
thrijith committed Jan 7, 2020
1 parent 84679d2 commit a3cda7d
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 a3cda7d

Please sign in to comment.