Reputation: 55
Is it possible to clear only the database cache or clear all cache with an exception in Laravel
? I need to cache a variable result, but it will be removed when I run Cache::Flush()
to clear mydatabase query.
Upvotes: 0
Views: 2452
Reputation: 2959
you should try use cache tags. It is great to clean just some part of your cache http://laravel.com/docs/4.2/cache#cache-tags
Upvotes: 0
Reputation: 8585
No, not using the artisan cache:flush
command, nor the Cache::flush()
, they accept no params.
If you wanted to do your own specific cleanup, you would need to code that yourself.
Upvotes: 1