set cache timeout to static variable, added flush-cache route