fiplus / fiplus-backend

2 stars 0 forks source link

Interest tab missing events #230

Open bkhurshi opened 9 years ago

bkhurshi commented 9 years ago

@kim2oden, I think something is wrong with the interest search. I created an event and tagged it only with soccer. Then logged in as another user which has soccer, running, and hockey as interests. Went to the interest tab, and the event did not show up.

kim2oden commented 9 years ago

Can you replicate this in strongloop explorer @bkhurshi ?

bkhurshi commented 9 years ago

I haven't tried. Come to think of it, it might just be caching at play here. Starting to think caching might not be such a good idea...

seanmikalson commented 9 years ago

Wouldn't say that caching is a bad idea, but yeah I think the cache flags need to be set to false when you log out.

bkhurshi commented 9 years ago

The scenario that caused this issue does not involve logging out at all. Just the fact that the tabs are not constantly refreshed makes them slightly stale, which is kind of what caching is supposed to do. One thing that could be done is display the cached events only until the newer events are retrieved, and we retrieve new events always and often.

bkhurshi commented 9 years ago

See lostape/fiplus-android#134