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

lnunesbr’s picture

Version: 6.x-1.2 » 7.x-1.x-dev

I 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.

progpapa’s picture

While 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.

mauritsl’s picture

Issue tags: +rate2 sprint

Another 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.

ivnish’s picture

Issue summary: View changes
Status: Active » Closed (outdated)
Issue tags: -rate2 sprint

Drupal 7 is EOL. Issue will be closed

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.