php bin/console doctrine:cache:clear-query

Clears all query cache for an entity manager

Usage

doctrine:cache:clear-query [--em EM] [--flush]

Options

      --em      Name of the entity manager to operate on 
      --flush   If defined, cache entries will be flushed instead of deleted/invalidated. 

Help

The doctrine:cache:clear-query command is meant to clear the query cache of associated Entity Manager.
It is possible to invalidate all cache entries at once - called delete -, or flushes the cache provider
instance completely.

The execution type differ on how you execute the command.
If you want to invalidate the entries (and not delete from cache instance), this command would do the work:

doctrine:cache:clear-query

Alternatively, if you want to flush the cache provider using this command:

doctrine:cache:clear-query --flush

Finally, be aware that if --flush option is passed, not all cache providers are able to flush entries,
because of a limitation of its execution nature.