Actually only the average of ratings is cached.
If someone clears the ratings table, all ratings of all chapters will be lost in the next table update.
I want to cache sum and count of ratings too, in this way we can calculate the rating in any moment.
Actually only the average of ratings is cached.
If someone clears the ratings table, all ratings of all chapters will be lost in the next table update.
I want to cache sum and count of ratings too, in this way we can calculate the rating in any moment.