Add cache variable to ajax