polls: bugfixes, added caching