Updates for cache::pull

This commit is contained in:
David Bomba 2024-03-09 16:42:27 +11:00
parent 66452a9f2a
commit f9a7c582b7

View File

@ -21,7 +21,7 @@ class ProtectedDownloadController extends BaseController
public function index(Request $request, string $hash)
{
/** @var string $hashed_path */
$hashed_path = Cache::pull($hash);
$hashed_path = Cache::get($hash);
if (!$hashed_path) {
throw new SystemError('File no longer available', 404);