Fixed cache prefix, primary key bug in routes