Fixed cache refresh (issue #2583)