Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
b02d474a
Commit
b02d474a
authored
Feb 12, 2020
by
Dominik Hebeler
Browse files
removed cache gc since redis cleans up itself
parent
7b8f3d61
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/Console/Commands/CacheGC.php
deleted
100644 → 0
View file @
7b8f3d61
<?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()'
);
}
}
app/Console/Kernel.php
View file @
b02d474a
...
...
@@ -27,7 +27,6 @@ class Kernel extends ConsoleKernel
{
$schedule
->
command
(
'requests:gather'
)
->
everyFifteenMinutes
();
$schedule
->
command
(
'requests:useragents'
)
->
everyFiveMinutes
();
$schedule
->
command
(
'cache:gc'
)
->
hourly
();
$schedule
->
call
(
function
()
{
DB
::
table
(
'monthlyrequests'
)
->
truncate
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment