FEATURE: cache most used SQL queries
This commit is contained in:
@@ -4,6 +4,7 @@ namespace App\Console\Commands;
|
||||
|
||||
use App\Models\Module;
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
|
||||
class SetTemplate extends Command
|
||||
@@ -63,6 +64,9 @@ class SetTemplate extends Command
|
||||
return;
|
||||
}
|
||||
|
||||
// delete cached current template
|
||||
Cache::forget('current-template');
|
||||
|
||||
// theme written
|
||||
$this->line('Template successfully set up.');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user