Muhammed Khalander
Muhammed Khalander

Reputation: 295

Laravel 5 cache tags on file drivers

Will laravel 5 support cache tags on file drivers ?

I am trying to you cache tags but i am getting following error

call_user_func_array() expects parameter 1 to be a valid callback, class 'Illuminate\Cache\FileStore' does not have a method 'tags'

I have tried in this way

Cache::tags('family')->put('wife','Umme Mufeez',10);
Cache::tags('family')->put('Kid','Mufeez', 10);
Cache::tags('family')->put('husband','Abu Mufeez', 10);

Upvotes: 2

Views: 1535

Answers (1)

Joseph Silber
Joseph Silber

Reputation: 220176

Laravel does not support cache tags in the file driver.

It clearly states it in the docs:

Note: Cache tags are not supported when using the file or database cache drivers.

Upvotes: 6

Related Questions