Skip to content

Conversation

@ichynul
Copy link
Contributor

@ichynul ichynul commented Jan 12, 2023

单独安装的think-orm默认没有缓存驱动,查询时使用cache()方法无效。
如果同时安装了think-ormthink-cache,使用它作为think-orm的缓存驱动。

使用cache()会报错,是top-think/think-cache的问题,由于这个库很久不更新,可以自己改一下。
参照:top-think/think-cache#11

单独安装的`think-orm`默认没有缓存驱动,查询时使用`cache()`方法无效。
如果同时安装了`think-orm`和`think-cache`,使用它作为`think-orm`的缓存启动。
@walkor walkor merged commit 0420d03 into webman-php:main Jan 12, 2023
@walkor
Copy link
Contributor

walkor commented Jan 12, 2023

Thanks

@ichynul
Copy link
Contributor Author

ichynul commented Jan 12, 2023

查询时使用cache()方法报错,解决办法手动修改一下top-think/think-cache
参考:top-think/think-cache#11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants