Skip to content
Snippets Groups Projects

Development

Merged Dominik Hebeler requested to merge development into master
6 files
+ 11
47
Compare changes
  • Side-by-side
  • Inline
Files
6
+ 0
43
<?php
namespace App\Console\Commands;
use DB;
use Illuminate\Console\Command;
class CacheGC extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'cache:gc';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Cleans up every expired cache File';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
DB::delete('delete from cache where cache.expiration < unix_timestamp()');
}
}
Loading