From 2bea43dce57b23a7620135e3ea093baf7419b987 Mon Sep 17 00:00:00 2001 From: Kaloyan Chernev Date: Mon, 10 May 2021 14:26:23 +0300 Subject: [PATCH] Change default recursive flag to false when purging files. I had a chat with someone in Stackpath and it seems the recursive=true is causing issues with the processing speed. It also will result in slower processing of the purges requested by the purge_files function. So the recursive parameter should be used only when it is really needed. --- src/StackPath/StackPath.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/StackPath/StackPath.php b/src/StackPath/StackPath.php index 87ce3e0..ca42013 100644 --- a/src/StackPath/StackPath.php +++ b/src/StackPath/StackPath.php @@ -106,7 +106,7 @@ public function purge_files($fileList, $opts = []) $files = []; $opts = array_merge([ - "recursive" => true, + "recursive" => false, ], $opts); foreach ($fileList as $file) {