api-rate-limit-bundle icon indicating copy to clipboard operation
api-rate-limit-bundle copied to clipboard

Default Symfony cache not working

Open Sigri44 opened this issue 5 years ago • 1 comments

Hi,

I use this package from Symfony 4.4, and with default Symfony Cache, i have an error : The path "indragunawan_api_rate_limit.cache" cannot contain an empty value, but got null.

Symfony : 4.4 PHP : 4.4 Package : latest

Thanks.

Sigri44 avatar Nov 01 '20 16:11 Sigri44

As the errors says, cache cannot contain empty value. You probably used cache: ~, which is not valid. If you want to use Symfony cache, then provide its service name, for example cache.app:

indragunawan_api_rate_limit:
    enabled: true
    cache: cache.app

Kreyu avatar Dec 31 '20 11:12 Kreyu