php bin/console doctrine:cache:clear-metadata

Clears all metadata cache for an entity manager

Usage

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

Options

      --flush   If defined, cache entries will be flushed instead of deleted/invalidated. 
      --em      The entity manager to use for this command 

Help

The doctrine:cache:clear-metadata command is meant to clear the metadata 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-metadata

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

doctrine:cache:clear-metadata --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.