![shirito](/assets/img/avatar_default.png)
Hello, I'm adding the whole https://items.sp-tarkov.com code base as well as the drone pipeline to deploy it. Please **double check *thoroughly* every** to ensure it matches the server architecture and configuration. Reviewed-on: SPT-AKI/Website#9 Co-authored-by: shirito <shirito@noreply.dev.sp-tarkov.com> Co-committed-by: shirito <shirito@noreply.dev.sp-tarkov.com>
36 lines
657 B
PHP
36 lines
657 B
PHP
<?php
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use App\Data\ItemsCollection;
|
|
use Illuminate\Console\Command;
|
|
|
|
class RefreshItemsCache extends Command
|
|
{
|
|
/**
|
|
* The console command name.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $signature = "items:refresh";
|
|
|
|
/**
|
|
* The console command description.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $description = "Refresh all items cache";
|
|
|
|
|
|
/**
|
|
* Execute the console command.
|
|
*
|
|
* @param ItemsCollection $itemsCollection
|
|
* @return void
|
|
*/
|
|
public function handle(ItemsCollection $itemsCollection): void
|
|
{
|
|
$itemsCollection->refreshAllCache();
|
|
}
|
|
}
|