decred / politeia

ISC License
110 stars 75 forks source link

ticketvote: Move summaries cache to db. #1657

Closed lukebp closed 1 year ago

lukebp commented 1 year ago

This commit moves the vote summaries cache from the file system to the tstore provided plugin cache that is backed by the tstore databse.

The initial plugin implementations were part of an extremely large commit that added the tstore backend. The caches were saved to the file system as a quick and dirty way to get things into production, with the intention of revisting them at a later date. API was later added that allowed the plugins to cache data in the tstore database.