Forums / Developer / problem with the cache in a vote

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

problem with the cache in a vote

Author Message

Eric Tshiunza

Monday 04 May 2009 12:15:04 am

when I do vote, I want the result is immediate but I have the result that when I empty the cache (knowing that to vote you must be logged in) I use an extension for voting StarRating

Jean-Luc Nguyen

Tuesday 05 May 2009 1:38:21 am

I suggest you add this line on top of your template voting file:

{set-block scope=root variable=cache_ttl}0{/set-block}

It disables the cache block system so you may see immediately the vote with AJAX.

http://www.acidre.com