All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

disabling low vars in some templates

pirco 15 Apr 2014 18:57 question, complete

is it possible to disable low vars like I disable 'pagination' and 'members' etc in the entry tag when optimizing for faster queries?
With template debugging enabled, I noticed that low var snippets are showing up on every page (and I have a lot of snippets but only need them on a couple of pages).

Replies

  1. Low 15 Apr 2014 19:08

    No, that's not possible.

    Early parsed LVs are just like native Snippets. Loaded (with 1 query) for each page. Just having them in memory hardly affects performance. It's only when they hit the actual template that their contents gets parsed.

    With normal usage, LV will only add one extra query per page load, no matter how many vars you have.

  2. pirco 15 Apr 2014 19:40

    fair enough.

    actually... very good :-)

    thanks.