replace piwik_last_cache with state
conver the setting form to a route based form