I am creating one application which have start rating. At the time of loading of application i am call web service for specific venue with user id and venue id and i got response with 2 parameter if this user is rate this venue the user’s rate and average rating.
Now problem is, Suppose A user cannot rate this venue so from web service response is like userrating = 0 and suppose avgrating = 2.25.
Now A user give rate to this venue 4. then web service call and save to database with value 4. Now here i am also return avgrating so suppose new avgrating is 3. Response comes right but i for display changes in application i have to do refresh 2 time. So i guess old is comes from cache.
Please help me for solving this.