F
F
fashionmens2018-03-16 14:02:46
Laravel
fashionmens, 2018-03-16 14:02:46

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

2 answer(s)
V
Victor, 2018-03-17
@fashionmens

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.

M
mShpakov, 2018-03-16
@mShpakov

https://stackoverflow.com/questions/38250191/when-...
Seems to be what you need

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question