FEATURE: cache most used SQL queries

This commit is contained in:
Michal Kváček
2017-02-22 01:40:26 +01:00
parent cad205960d
commit f3b1951d25
10 changed files with 74 additions and 35 deletions
+4
View File
@@ -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.');