How do you handle the page cache for pages that use inline queries?

If a page has an inline query, for instance, to show all pages from a category, and I edit another page to insert it on the category, the page with the query will not reflect this change.

Only if I purge the page cache manually it will be updated.

This behavior seems to make the inline queries not so useful, because there is a high chance they will be showing incorrect data as the wiki evolves.

I'd like to know if anyone has developed strategies to handle this.

Since I'm new to MediaWiki, I don't know what strategy would be better.

Thank you.