Instead of relying on the query-index to list pages and emails, we can use the Drive and DA APIs. This would instantly show new pages and emails as you create them and it would avoid the caching issue. This would also allow to differentiate previewed only vs previewed and published.
Instead of relying on the query-index to list pages and emails, we can use the Drive and DA APIs. This would instantly show new pages and emails as you create them and it would avoid the caching issue. This would also allow to differentiate previewed only vs previewed and published.