adMethodCallException: This cache store does not support tagging.

使用laravel时报错如下:

adMethodCallException: This cache store does not support tagging.

查询相关资料发现:

Cache tags are not supported when using the file or database cache drivers. The Entrust package probably uses them somewhere. You should be ok if you change it to array, memcache or apc for example.

小结:

laravel缓存的tags并不支持file与数据库缓存驱动,查看了一下.env配置文件

发现

CACHE_DRIVER=file
改为array,立马ok!
阅读更多
文章标签: laravel cache tags
个人分类: bugLog laravel
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭
关闭