Closed (fixed)
Project:
Voting API
Version:
5.x-1.5
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Nov 2007 at 00:23 UTC
Updated:
6 Jun 2008 at 02:56 UTC
What is (the best) way to reset/rebuild the Voting API cache? I had some spam votes which were deleted manually (http://drupal.org/node/192059) but the resultes are still in Voting API Cache. So the old results are shown to visitors.
So the target now is to rebuild the Voting API cache without spam votes.
Comments
Comment #1
eaton commenteduse PHP to call the votingapi_recalculate_results() function, passing in the content type (node, in most cases) and the content id (the node id, also in most cases). That should do the trick!
Comment #2
eaton commented