I'm trying to make WP PostRatings plugin clear WP Super Cache when a rating is made. I only want to clear the cache for the post which was rated.
So I edited the process_ratings function in wp-postratings.php, and added wp_cache_post_change($post_id); to it. process_ratings is the function that checks if a user can rate, and then adds the custom fields and logs the results to the database, so I assumed that's where I should add this.
Problem is, the cache is not cleared when a rating is made. I'm clueless about this stuff so it could be I'm missing something very obvious. The actual voting on the page uses AJAX, but I figured since process_ratings function is executed every time a rating is made, this should work...
I tried checking if wp_cache_post_change function_exists and then echo something when a rating is made (works), and also modify some other custom fields when a rating is made (again, that worked). But not clearing the cache...
Any thoughts?