Navigation | Overlay |
---|---|
t Navigate files | h Toggle hits |
y Change url to tip of branch | m Toggle misses |
b / v Jump to prev/next hit line | p Toggle partial |
z / x Jump to prev/next missed or partial line | 1..9 Toggle flags |
shift + o Open current page in GitHub | a Toggle all on |
/ or ? Show keyboard shortcuts dialog | c Toggle context lines or commits |
1 |
<?php
|
|
2 |
|
|
3 |
namespace Nuwave\Lighthouse\Console; |
|
4 |
|
|
5 |
use Illuminate\Console\Command; |
|
6 |
use Illuminate\Contracts\Cache\Repository as CacheRepository; |
|
7 |
use Illuminate\Contracts\Config\Repository as ConfigRepository; |
|
8 |
|
|
9 |
class ClearCacheCommand extends Command |
|
10 |
{
|
|
11 |
protected $name = 'lighthouse:clear-cache'; |
|
12 |
|
|
13 |
protected $description = 'Clear the GraphQL schema cache.'; |
|
14 |
|
|
15 |
public function handle(CacheRepository $cache, ConfigRepository $config): void |
|
16 |
{
|
|
17 |
$cache->forget( |
|
18 |
$config->get('lighthouse.cache.key') |
|
19 |
);
|
|
20 |
|
|
21 |
$this->info('GraphQL AST schema cache deleted.'); |
|
22 |
}
|
|
23 |
}
|
Read our documentation on viewing source code .