Template Level Subscriptions and Data Cache on the Client

I am using TLS in a template and it works fine. My client only subscribes and receives data, once the template is loaded/created. It is based on this article: https://www.discovermeteor.com/blog/template-level-subscriptions/

Now when routing to another template, my template-level-loaded documents are removed from minimongo and are reloaded, once I reload the template. I think this is the intended behavior for TLS but I want to do the following:

  1. I still want to subscribe only on template level
  2. I want to keep / cache the docs in minimongo and prevent reloading them.

I found this package (https://github.com/convexset/meteor-template-level-subs-cache) but I am not sure, wether this is the way of choice or if TLS as in the article above is not the right approach for that.

Kadira’s Subsmanager has been the standard package for this (not saying the one you found could not be just as good or better).

That looks exactly like what I am looking for :slight_smile:

Do you imply by saying

has been the standard package

that now no one uses it anymore today?

No. It hasn’t been updated in a year though, so it could be that a newer package might have improved on it, but I don’t know. SubsManager was made by the Meteor performance specialist Arunoda, so it could well be evergreen.