Added a way to clear the cache of a plan view

Signed-off-by: Martin Evans <martindevans@gmail.com>