How to display code on frontend if logged in

I see. Maybe then there is a way to add some class to body for logged-in users? Then just can hide EDIT links with css display:none.

That will have the same effect. As I said, depending on who visits the page first, the next user will see exactly what was stored first.

I would discourage that since the link is still in the HTML, and personally I wouldnt want that visiable to eveyrbody. and yes… ur still stuck with the problem

Ah, yes, as it will cache the class too.

Exactly.

Maybe then there is easy way to disable cache for logged in users?

I think your just going to have to exclude those pages from the cache.

Well, that would be all pages :slight_smile: as EDIT link should be on every page.

Well to be honest, Kirby is pretty awesomely fast without the cache. Unless its a particularly complex & heavy site, it’s not that necessary. My site loads in 0.3 seconds without the cache enabled.

Yes, hard to notice any difference in speed with or without cache. There was plugin for Kirby 2 to edit from frontend, so maybe something similar will be made for Kirby 3.

Yes, should work if you disable the cache for logged in users.