-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subscription not expiring #67
Comments
+1. Subscription still seems to be active in |
@arunoda What are we missing here? |
Can I have a sample case? may be a simple app? |
+1 not working @arunoda You can check it with a simple app that uses a subscription. The subscription data is still available after the expire time. I've tried it on a chat application, set expireIn to 1 minute and still got messages after 5 minutes. |
+1 I experienced the same issue. I can give an example. I have a list with a pagination:
Initially (being on page 1) I subscribe to the list collection with Now let's count the documents (the result is as expected): MyCollection.find().count() // => 6 Let's wait until the subscriptions are expired (after MyCollection.find().count() // => 6 So even when the subscriptions are expired all documents are still cached. Going back to page 1 Let's wait again until the subscription is expired. Now we navigate to page 3. MyCollection.find().count() // => 3 So only when subscribing with different parameters the old subscriptions are actually removed! I hope that helps. For the moment I need to increase |
I'm subscribing through Iron Router's
waitOn
. I initiated an instance as:Then did
App.Subs.subscribe 'inventory'
withinwaitOn
but after I change the route and wait for 1 minute, documents are still there if I query them using the client console.Any ideas? Thank you!
The text was updated successfully, but these errors were encountered: