Added pk to cached data for entity views.
Added flush_cache command.