Add option to generate the cache of an election when creating said election