New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unrecognized option "Apc" under "stash.caches.default" #91
Comments
Found the cause! I didn't have Apc enabled from cli |
Sure, but be aware cache in Apc is not shared between different processes, like cli and "web" process. So essentially you should avoid Apc cache if you need to interact with the same cache pool from cli, ref krakjoe/apcu#136. |
I think you misunderstood me. I wasn't suggesting to use Stash with Apc from cli. The issue is when you run cache:clear in Symfony from cli, it will clear cache (Symfony's cache, not Stash) and then it will do cache warmup (parsing and caching config files including config.yml). With StashBundle, StashBundle will only register Apc as a valid configuration if at runtime Stash Apc driver isAvailable() returns true. With Apc not enabled in cli, this resulted in error because Stash thinks Apc is not available if you have Stash configured to use Apc and have modified ttl and/or namespace in config.yml. |
I think there are two options:
Option 1 clearly easier but is a work around. Option 2 I think is the better solution. |
Strange, I have this
and
but when running the
EDIT: In my case, the web version fails as well, on these lines inside the {{Apc.php}} Driver file:
Running Any ideas? |
You also need apcu-bc for backward compatibility with php7. This is needed until StashBundle is using the latest Stash library that supports apcu directly. |
@layanto Works, thank you! |
With this in config.yml:
When doing app/console cache:clear with Symfony 2.8.1, getting this error:
Unrecognized option "Apc" under "stash.caches.default"
The text was updated successfully, but these errors were encountered: