19 lines
447 B
PHP
19 lines
447 B
PHP
<?php
|
|
use Illuminate\Support\Facades\Storage;
|
|
use Illuminate\Support\Facades\Log;
|
|
|
|
function cacheBladeLoad($cacheName) {
|
|
|
|
try {
|
|
// Fetch the cached content
|
|
$cachedContent = Storage::get('cache/'. $cacheName .'.blade.php');
|
|
|
|
// Display the cached content
|
|
echo $cachedContent;
|
|
} catch (\Throwable $th) {
|
|
//throw $th;
|
|
Log::error('Cache blade load error: ' . $th->getMessage());
|
|
}
|
|
|
|
}
|
|
?>
|