Hi,
My site has rate widget (thumbs up) and Boost module to cache.
When i click the rate button, i can check at mysql that the vote is being computed (both tables votingapi_cache and votingapi_vote gets a new record) but if i reload the page i would see it as if the vote isn't being computed, until i clean cache.
How should i fix this or at least disable voting from being cached?
thanks
Carlos
Comments
Comment #1
lnunesbrI am facing the same problem. Boost cache the full html, and this module brings the rendered vote in a new html, but, as the current page is cached, nothing comes up.
Ideally, the vote should be registered in a cookie, or, a ajax should be triggered on page load, and this should bring the updated vote.
Comment #2
progpapa commentedWhile offering the option to load the widget via ajax would probably be the best, it looks like putting the widget into a block and using the Ajax Blocks module solves this problem.
A small module has to be written to create that block. It shouldn't be that hard, though. There are instructions in the readme.txt of the Rate module on how to put the widget in a block and the Block Example submodule of the Examples module shows how to create a block, in case you're unfamiliar with it.
Comment #3
mauritsl commentedAnother option might be to expire the page using the expire module. More cache related settings are desired anyway. Tagging this for 2.x todo.
2.x uses fields for widgets, so putting them in blocks should be easy using cck_blocks for example.
Comment #4
ivnishDrupal 7 is EOL. Issue will be closed