fixed bugs with mysql based url cache