edit cache helper method