Issue #2912. Cleared cache after graph instance is returned to the pool.