Outlines display option "visible layers" does not work. How to fix it? When i select display mode of "Visible laters" only in outliner, it still shows objects that are on other layers, that are currently not visible. Even when current layer is empty.

How to fix that?
In the 3D view that you want the outliner to update on depending on what layer you're on, click the square with a link in front of it.