H
H
HellWalk2019-06-10 13:58:09
Laravel
HellWalk, 2019-06-10 13:58:09

How to manually clear the Laravel cache?

Hosted Laravel site, no console access.
You need to do the same with your hands, what does the "php artisan config:cache" command do - which folders need to be cleaned?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
E
eldario, 2019-06-10
@HellWalk

And what about here config:cache?
Maybe so?

Route::get('clear', function () {
    Log::debug('CLEARED');
   Artisan::call('cache:clear');
});

J
JhaoDa, 2019-06-10
@JhaoDa

1. Open cache settings .
2. We look.
3. ...
4. PROFIT!
For several years now, as any decent shared hosting gives access to the console. Maybe we should stop chewing cactus?

A
Alexander, 2019-06-10
@xpert13

\Artisan::call('config:cache');

Z
ZardoZAntony, 2021-01-12
@ZardoZAntony

Just delete everything in the directory through the hosting file manager storage/framework/cache
Provided that the default cache is file

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question