Simplify caching in states_controller
Simplify caching in states_controller

Just looking at the last item isn't a safe way to determine the
freshness of a cache. This also caused exceptions in a test (which were
hidden by the rescue_from in BaseController)

Senjai/solidus,forkata/solidus,pervino/solidus,grzlus/solidus,grzlus/solidus,ckk-scratch/solidus,scottcrawford03/solidus,forkata/solidus,bonobos/solidus,lsirivong/solidus,pervino/solidus,jordan-brough/solidus,lsirivong/solidus,Arpsara/solidus,bonobos/solidus,grzlus/solidus,athal7/solidus,devilcoders/solidus,Arpsara/solidus,lsirivong/solidus,pervino/solidus,jsurdilla/solidus,scottcrawford03/solidus,jsurdilla/solidus,jordan-brough/solidus,Senjai/solidus,forkata/solidus,richardnuno/solidus,grzlus/solidus,pervino/solidus,Arpsara/solidus,ckk-scratch/solidus,xuewenfei/solidus,jsurdilla/solidus,ckk-scratch/solidus,Arpsara/solidus,Senjai/solidus,richardnuno/solidus,xuewenfei/solidus,athal7/solidus,jordan-brough/solidus,ckk-scratch/solidus,lsirivong/solidus,athal7/solidus,devilcoders/solidus,bonobos/solidus,xuewenfei/solidus,athal7/solidus,scottcrawford03/solidus,bonobos/solidus,richardnuno/solidus,jsurdilla/solidus,devilcoders/solidus,Senjai/solidus,scottcrawford03/solidus,forkata/solidus,xuewenfei/solidus,devilcoders/solidus,jordan-brough/solidus,richardnuno/solidus