ssrwpo / ssr

SSR - Router with SSR for Node & Meteor
https://ssrwpo.github.io/ssr/
MIT License
93 stars 16 forks source link

cacheConfig - How to disable route level caching #60

Closed s7dhansh closed 7 years ago

s7dhansh commented 7 years ago

I tried the following code but it is still caching the route.

  static ssr = {
    cacheConfig: {
      enable: false,
    },
  }

It stops caching only when I disable caching in server/routes by:

options: {
        enableCaching: false,
    }

I am using develop branch. Is this the desired behavior? How to enable/disable caching w.r.t specific routes?

PEM-- commented 7 years ago

As stated in the contribution guide, we don't take usage questions. We want to keep this repo as clean as possible. I'm closing this.

BTW, cache options are handled within src/server/steps/cacheFilling.js. We are not quite sure to keep it the way it's implemented right now. Though static analysis is nice and simple, this triggers overhead while parsing the app.