Fix various errors, add ?deleteCache=1