Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-14316

Default template takes too much ressources

    XMLWordPrintable

Details

    Description

      Some tpl of ezflow could be optimized.

      For example, in

      extension/ezflow/design/standard/templates/block/view/view.tpl
      

      the following code

      {foreach $block.valid_nodes as $valid_node}
      <li>{$valid_node.name}</li>
      {/foreach}
      

      could be replaced by

      {def $valid_nodes=block.valid_nodes}
      {foreach $valid_nodes as $valid_node}
      <li>{$valid_node.name}</li>
      {/foreach}
      

      Each call to $block.valid_nodes generate some extra SQL queries.

      If you have 10 items it will increase the number of queries *10.

      Attachments

        Activity

          People

            ls ls
            qwix qwix
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: