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.

        Activity

        Hide
        Łukasz Serwatka added a comment -

        Added to ezflow 1.1 roadmap.

        Show
        Łukasz Serwatka added a comment - Added to ezflow 1.1 roadmap.
        Hide
        Łukasz Serwatka added a comment -

        Implemented in ezflow:

        trunk (1.1) rev. 3512, 3513
        stable/1.0 rev. 3514

        Show
        Łukasz Serwatka added a comment - Implemented in ezflow: trunk (1.1) rev. 3512, 3513 stable/1.0 rev. 3514
        Hide
        ezrobot added a comment -

        This issue has been automatically closed due to the lack of activity over a long period of time. It is very likely that it is obsolete, but if you think it is still valid, do not hesitate to reopen it and mention why.

        Show
        ezrobot added a comment - This issue has been automatically closed due to the lack of activity over a long period of time. It is very likely that it is obsolete, but if you think it is still valid, do not hesitate to reopen it and mention why.

          People

          • Assignee:
            Łukasz Serwatka
            Reporter:
            Jérôme Renard
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: