jdavidbakr/laravel-cache-garbage-collector

Setting when to perform garbage collection

geopast opened this issue · 2 comments

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 :)

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

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)