Hi, I found that there are more detailed information in votingapi_cache table in database. e.g. there are sum, count, and average values for a vote. However, the name "cache" make me think it will be empty if I clear the cache in Drupal. However, after I try to clear cache, the data in this table is still existing.

I would like to know what is the table actually? If it is not "cache", can change the name of this table for avoiding confusion?

Thank you very much.

Comments

torotil’s picture

Title: votingapi_cache table » Rename votingapi_cache into votingapi_results
Category: support » task

The table holds all the vote results. The table name is historical and should perhaps be renamed into votingapi_results at some point.

Calling it cache isn't wrong entirely as the table doesn't hold any data that can't be recalculated again - and it will be recalculated when you empty it.

adamtong’s picture

I see. So will it be rename in next release?

torotil’s picture

Version: 7.x-2.x-dev » 7.x-3.x-dev

@adamtong I'd rather rename it for 3.x than for 2.x …

pifagor’s picture

Issue summary: View changes
Status: Active » Closed (outdated)