Hi Haidy,
I made the mistake when documenting the points functions of writing basically the same thing for both calculate_post_points() and cache_post_points()
Essentially, calculate_post_points() should just calculate and return the points, and cache_post_points() can use calculate_post_points() and additionally update the values in the database.
I have updated the docs to this specification, and the change can be made.
Thanks
Hi Haidy, I made the mistake when documenting the points functions of writing basically the same thing for both calculate_post_points() and cache_post_points()
Essentially, calculate_post_points() should just calculate and return the points, and cache_post_points() can use calculate_post_points() and additionally update the values in the database.
I have updated the docs to this specification, and the change can be made. Thanks