Setting when to perform garbage collection
geopast opened this issue · 2 comments
geopast commented
Hi, i've installed this code to manage my cache size on www.pastpin.com. I'd like to set it to clear out say once a week - is that possible? Thanks :)
jdavidbakr commented
Yes, just add it to your console kernel schedule:
$schedule->command('cache:gc')
->weekly();
Of course you'll need to have the scheduler running as per https://laravel.com/docs/master/scheduling
geopast commented
Thanks!
On 17 May 2016, at 3:28 AM, J David Baker notifications@github.com wrote:
Yes, just add it to your console kernel schedule:
$schedule->command('cache:gc')
->weekly();
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub #1 (comment)