Skip to content

Commit

Permalink
Use -1 for last update of the menu
Browse files Browse the repository at this point in the history
We must not rely on the server time minus an offset for the last update of the menu
to trigger an immediate update of the menu because the server time may be behind the current time.

fixes #8694
  • Loading branch information
lippserd committed Mar 11, 2015
1 parent 7fe4b3d commit 83443a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/layouts/scripts/parts/navigation.phtml
Expand Up @@ -21,7 +21,7 @@ if (! $this->auth()->isAuthenticated()) {
</li>
</ul>
</div>
<div id="menu" data-last-update="<?= (time() - 14) ?>000" data-base-target="_main" class="container"
<div id="menu" data-last-update="-1" data-base-target="_main" class="container"
data-icinga-url="<?= $this->href('layout/menu') ?>" data-icinga-refresh="15">
<?= $this->partial(
'layout/menu.phtml',
Expand Down

0 comments on commit 83443a5

Please sign in to comment.