tenant cache not work with file drive #322
Replies: 1 comment 2 replies
-
You did not provide a lot of information about your setup or your problem, for example: What exactly does not seem to work? Is the cache overridden with each tenant? Or is it simply not hitting the cache at all? Providing some code examples will increase the change of finding out what the problem is. Please also note that the documentation states:
So you might need to tweak the configuration in order to get it working with file based caching. That is because the Laravel You could try altering the cache path inside a Task, but you have to be careful when using the Cache Facade within for example queues: https://spatie.be/docs/laravel-multitenancy/v2/advanced-usage/using-tenant-specific-facades. Alternatively you might be able to use a memory based cache for your project. |
Beta Was this translation helpful? Give feedback.
-
Hi,
cache working fine when it store into tenant database, but it doesn't work when use file as cache driver I already using the PrefixCacheTask but doesn't work. What can be the reason
Beta Was this translation helpful? Give feedback.
All reactions