Answer the question
In order to leave comments, you need to log in
Do I need to manually clean the /storage/framework/cache/data folder?
I am running a project on Laravel, where a lot of data is cached. But the data is cached for no more than three hours. There is no data that would be cached forever. But for some reason the /storage/framework/cache/data folder weighs more than 9Gb.
Do I need to clean this folder manually or does Laravel clean it up itself? Or why such a large folder size?
Answer the question
In order to leave comments, you need to log in
Judging by the source data, Laravel does not clean anything itself. Cache files are explicitly deleted during flush, forget operations and an attempt to get a rotten key, so you need to clean it yourself. Or put a call to Cache::flush in Schedule.
https://github.com/laravel/framework/blob/5.6/src/...
Search by ->delete.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question