Project

General

Profile

Actions

Bug #4937

closed

Internal path enabled WMenu always loads the first item contents

Added by Saif Rehman over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Roel Standaert
Target version:
Start date:
05/25/2016
Due date:
% Done:

0%

Estimated time:

Description

Currently I'm using WMenu for paging in my web app. The first menu item's content is a summary widget (page) which runs a large number of COUNT, SUM and similar queries.

WMenu explicitly runs WWidget::load() on the first WMenuItem's::contents() WWidget regardless of what the current item index is or what the current internal path is. Since it calls this load explicitly I'm not sure if this is intentional or not, however, it is unnecessary and could benefit from the optimization of not calling load() on the first menu item's content.

Actions #1

Updated by Koen Deforche over 8 years ago

  • Status changed from New to InProgress
  • Assignee set to Roel Standaert
  • Target version set to 3.3.6

This is indeed sometimes annoying, and we should be able to postpone the actual loading of the contents in the stack until we render the menu.

Actions #2

Updated by Roel Standaert over 8 years ago

  • Status changed from InProgress to Implemented @Emweb
Actions #3

Updated by Koen Deforche over 8 years ago

  • Status changed from Implemented @Emweb to Closed
Actions

Also available in: Atom PDF