Hello
With Symfony 3.3 whenever I try any combination of doctrine:cache:clear ( dev/prod), it will throw the error
PHP Fatal error: Class 'Memcached' not found in /Users/user/Sites/Symfony1/vendor/doctrine/doctrine-cache-bundle/Tests/Functional/Fixtures/Memcached.php on line 6
Also, I read somewhere that doctrine-cache-bundle might require doctrine-fixtures-bundle, and I tried to install that, but again the same error is thrown on installation as per:
An error occurred when executing the "'cache:clear --no-warmup'" command:
I do have Memcached extension enabled on php ( Memcached version 3.0.4 as per phpinfo() ). Actually I am using Symfony's memcached adapter to cache query results per :
use Symfony\Component\Cache\Adapter\MemcachedAdapter;
I have to say that I am more than a bit confused with the overlap between Symfony's cache, ORM cache and doctrine-cache-bundle. Not sure If or how to use them together and the documentation is not at all clear.
In any case, here is my config.yml
` framework:
cache:
app: cache.adapter.memcached
default_memcached_provider: "memcached://127.0.0.1:11211"
...
orm:
...
entity_managers:
default:
metadata_cache_driver: memcached
result_cache_driver:
type: memcached
host: 127.0.0.1
port: 11211
instance_class: Memcached
query_cache_driver: memcached
doctrine_cache:
aliases:
mem_cached_meta: my_memcached_cache_metadata
mem_cached_query: my_memcached_cache_query
mem_cached_result: my_memcached_cache_result
providers:
my_memcached_cache_metadata:
type: memcached
namespace: metadata_cache_ns
aliases:
- mem_cached_meta
my_memcached_cache_query:
type: memcached
namespace: query_cache_ns
aliases:
- mem_cached_query
my_memcached_cache_result:
type: memcached
namespace: result_cache_ns
aliases:
- mem_cached_result`
Invalid