From 6884bb0e0c3501617813f3dccbaa936834f5d36d Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 30 Jul 2025 18:49:37 +0200 Subject: [PATCH] wait #7673 --- src/routes/cubist/backpack/cdnproxy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/cubist/backpack/cdnproxy.php b/src/routes/cubist/backpack/cdnproxy.php index 855d604..a320627 100644 --- a/src/routes/cubist/backpack/cdnproxy.php +++ b/src/routes/cubist/backpack/cdnproxy.php @@ -13,7 +13,7 @@ Route::group([ $ext = array_pop($e); $cache = \Cubist\Util\Files\Files::mkdir(storage_path('app/cache/cdnproxy')) . sha1($url) . '.' . $ext; - if (!file_exists($cache)) { + if (!file_exists($cache) || filemtime($cache) < (time() - 604800)) { copy($url, $cache); } return \Cubist\Backpack\Http\Controllers\Base\XSendFileController::sendfile($cache); -- 2.39.5