? votingapi_rebuild_cache.patch ? votingapi_rebuild_cache.php Index: README.txt =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/votingapi/README.txt,v retrieving revision 1.4.6.1 diff -u -p -r1.4.6.1 README.txt --- README.txt 25 Jun 2008 13:05:03 -0000 1.4.6.1 +++ README.txt 24 Feb 2009 23:05:54 -0000 @@ -1,6 +1,10 @@ The Basics ========== -VotingAPI is a framework for content voting and rating systems in Drupal. It does not directly provide any voting 'features' to users -- instead, it offers a consistent API for other module developers to build their voting and rating systems on top of. If you're an end user who just wants to rate nodes, check out some of the modules that use VotingAPI's framework: +VotingAPI is a framework for content voting and rating systems in Drupal. It +does not directly provide any voting 'features' to users -- instead, it offers a +consistent API for other module developers to build their voting and rating +systems on top of. If you're an end user who just wants to rate nodes, check out +some of the modules that use VotingAPI's framework: Fivestar UserReview @@ -10,12 +14,32 @@ Node Moderation ... and more. -If you're a developer who wants to build a voting or rating related module, check out API.txt in the VotingAPI directory. +If you're a developer who wants to build a voting or rating related module, +check out API.txt in the VotingAPI directory. Installation ============ -Installing VotingAPI is pretty straightforward. Just copy the VotingAPI directory into your web site's /modules directory. Then, activate the module by visiting http://www.example.com/admin/modules, where example.com is the URL of your web site. +Installing VotingAPI is pretty straightforward. Just copy the VotingAPI +directory into your web site's /modules directory. Then, activate the module by +visiting http://www.example.com/admin/modules, where example.com is the URL of +your web site. + + +Rebuild the Voting API Cache +============================ +There are some rare situations where your Voting API Cache data (votingapi_cache +database table) may get out of date, or you accidentally delete all the data. +When that happens, you need to rebuild the data all at once. This module comes +with a file votingapi_rebuild_cache.php which performs that task. To use it, +simply copy the file to the root of your Drupal installation and then execute it +using php on the command line: + + $ php votingapi_rebuild_cache.php + +This will update the cache for all votes on your site and may take some time. +If you only want to update certain types of votes you can modify the query +performed by this script. Requirements ============ -VotingAPI requires Drupal 4.7 or later. +VotingAPI requires Drupal.