From: Vincent Vanwaelscappel Date: Wed, 30 Jul 2025 16:49:37 +0000 (+0200) Subject: wait #7673 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=6884bb0e0c3501617813f3dccbaa936834f5d36d;p=cubist_cms-back.git wait #7673 --- 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);