Clears cache on open and locks GUI