Add refresh method to editor cache.