• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
    • Wiki
    • Support
      • Manage Subscriptions
      • FAQ
      • Support For
        • VaultWiki 4.x Series
        • VaultWiki.org Site
    • What's New?
    • Buy Now
    • Manual
    • 
    • Support
    • VaultWiki 3.x Series
    • Bug
    • Nested Template Queries

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Issue: Nested Template Queries

    • Issue Tools
      • View Changes
    1. issueid=442 March 14, 2009 11:50 PM
      pegasus pegasus is offline
      VaultWiki Team
      Nested Template Queries

      While nested templates have been a great innovation in efficiently writing pages, they seem to have some inefficiency in parsing pages. Articles attempt to fetch the replacement text for all templates at once using only one query. However, the parser cannot determine the replacement text that will be needed to parse nested templates, without first parsing the replacement text for the first templates. This means that for every level of nested templates, there is one query. A second/third/fourth/etc level template creates new branches of templates, which are then multiplied into the queries needed. For some articles, templates could be adding 9 or 10 queries, or more.

      For the next build, we have added a new caching mechanism to deal with this issue. Basically, when a page using templates is parsed, it saves the ids of the templates it needed into its metadata. Next time around, it fetches all of the expected templates at once, rather than waiting for each branch to parse to find out.

      Even so, keep template code as simple as possible. Try not to nest too many templates, because your server will have to run 50 queries at least once to create the metadata.
    Issue Details
    Issue Number 442
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Templates
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 2.2.0
    Fixed Version 2.2.1
    Milestone (none)
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    + Reply

    Assigned Users
    Loading Please Wait
    Tags
    Loading Please Wait
    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 11:03 AM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2023 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2023 DragonByte Technologies Ltd.
    Copyright © 2008 - 2013 VaultWiki Team, Cracked Egg Studios, LLC.