Dynamic page

I created a page that lists all its children titles…when I add a
children I need to clear cache to update tha main page…
so I create an extension with a new page type (Dynamic).
When a page is saved, it checks all its ancestor; if it finds a page
of Dynamic type it clears its cache…
Is there another way to do it?

Andrea F.

[email protected]