Answer the question
In order to leave comments, you need to log in
Why does flushAll in symfony 3 return true?
Connected DoctrineCacheBundle()
Added in settings:
# app/config/config.yml
doctrine:
orm:
result_cache_driver:
type: memcache
host: localhost
port: 11211
instance_class: Memcache
doctrine_cache:
providers:
memcache:
type: memcache
aliases:
- memcache
$memcache = $this->container->get('memcache');
$data = $memcache->flushAll();
Answer the question
In order to leave comments, you need to log in
This method saves all data instead of getting it
/**
* Flushes all cache entries.
*
* @return bool TRUE if the cache entries were successfully flushed, FALSE otherwise.
*/
public function flushAll()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question