Flush all cache in Laravel 4 - Stack Overflow

most recent 30 from stackoverflow.com

Latest articles

Answer by R T for Flush all cache in Laravel 4

Sometimes View cache doesn't flush that way (php artisan cache:clear). But using below command did the trick: php artisan view:clear

Answer by afroald for Flush all cache in Laravel 4

Illuminate\Cache\FileStore has the function flush, so you can use: Cache::flush();

Answer by The Alpha for Flush all cache in Laravel 4

If you run php artisan list then you can find all the commands available for artisan, anyways, there is a command to clear the cache and it's php artisan cache:clear Also, you can use foreach (Cache::getMemory() as $cacheKey => $cacheValue) { Cache::forget($cacheKey); } Update: Cache::flush();

Answer by devo for Flush all cache in Laravel 4

Use, use Doctrine\Common\Cache\CacheProvider as DoctrineCache; DoctrineCache::flushAll(); to flush all cache.

Flush all cache in Laravel 4

Is there a way to flush all cache in Laravel 4? I'm using file for caching. I read on the docs that you can use Cache::forget('key') , but what if I need to delete all the cache? An artisan command can also be useful, I think there's an issue on the repo, but not sure if it's implemented yet. Thanks!

Answer by R T for Flush all cache in Laravel 4

Sometimes View cache doesn't flush that way (php artisan cache:clear). But using below command did the trick: php artisan view:clear

Answer by afroald for Flush all cache in Laravel 4

Illuminate\Cache\FileStore has the function flush, so you can use: Cache::flush();

Answer by The Alpha for Flush all cache in Laravel 4

If you run php artisan list then you can find all the commands available for artisan, anyways, there is a command to clear the cache and it's php artisan cache:clear Also, you can use foreach (Cache::getMemory() as $cacheKey => $cacheValue) { Cache::forget($cacheKey); } Update: Cache::flush();

Answer by devo for Flush all cache in Laravel 4

Use, use Doctrine\Common\Cache\CacheProvider as DoctrineCache; DoctrineCache::flushAll(); to flush all cache.

Flush all cache in Laravel 4

Is there a way to flush all cache in Laravel 4? I'm using file for caching. I read on the docs that you can use Cache::forget('key') , but what if I need to delete all the cache? An artisan command can also be useful, I think there's an issue on the repo, but not sure if it's implemented yet. Thanks!

Discover, share and read the best on the web

Subscribe to RSS Feeds, Blogs, Podcasts, Twitter searches, Facebook pages, even Email Newsletters! Get unfiltered news feeds or filter them to your liking.

Get Inoreader
Inoreader - Subscribe to RSS Feeds, Blogs, Podcasts, Twitter searches, Facebook pages, even Email Newsletters!