Version

Documentation » Cache

4. Contextual Cache »

« 2. Installation

3. Command Line Tools

  • Flush cache elements matching the key block_id = 5:

    php app/console sonata:cache:flush --keys='{"block_id":5}'
    
  • Flush cache elements from Varnish and Memcached matching the key block_id = 5:

    php app/console sonata:cache:flush --keys='{"block_id":5}' --cache=sonata.page.cache.esi --cache=sonata.cache.memcached
    
  • Flush all cache elements:

    php app/console sonata:cache:flush-all
    
  • Flush all cache elements from Varnish:

    php app/console sonata:cache:flush-all --cache=sonata.page.cache.esi
    

Found a typo? Something is wrong in this documentation? Just fork and edit it!