Skip to content

Commit

Permalink
[FIX] Cache des menus
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinMASSY committed Jan 28, 2018
1 parent c0ec82a commit c7854bd
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion kernel/framework/phpboost/menu/CachedMenu.class.php
Expand Up @@ -41,7 +41,7 @@ public function __construct(Menu $menu)

private function build_cached_string()
{
if (!self::need_cached_string($this->menu))
if (self::need_cached_string($this->menu))
{
$this->cached_string = $this->menu->display();
}
Expand Down
5 changes: 0 additions & 5 deletions kernel/framework/phpboost/menu/content/ContentMenu.class.php
Expand Up @@ -104,10 +104,5 @@ public function get_display_title() { return $this->display_title; }
* @return string the menu content
*/
public function get_content() { return $this->content; }

public function need_cached_string()
{
return true;
}
}
?>
5 changes: 0 additions & 5 deletions kernel/framework/phpboost/menu/feed/FeedMenu.class.php
Expand Up @@ -141,10 +141,5 @@ public function display()
}
return '';
}

public function need_cached_string()
{
return true;
}
}
?>

0 comments on commit c7854bd

Please sign in to comment.