How to check a conditidion without wasting WU?

So I have two types of public pages and sometimes the current page’s thing is empty when visitors come to the page’s thing.

When it’s empty, I want to show an empty state content which prompts them to create the thing.

I am running into an issue where these two checks (1 for each page) eat up up to 85% of the fetching data WU combined.

The conditions are when current page thing's field is empty on groups on the page. I need to check a field on the thing and not whether the thing exists or not.

When I load these pages with any slug (existing or nonexisting) it should either return the thing it should return with the field or an empty thing.

Why does it waste another msearch to confirm that the thing’s field is empty? Do conditions fire before page load somehow?

tldr; The main question is how to check a current page thing's field without having to search for it when the page has the slug already and should return the thing anyway.

This topic was automatically closed after 70 days. New replies are no longer allowed.