thoughtco / statamic-cache-tracker

12 stars 2 forks source link

Add augmentation hook for Page class #10

Closed simonerd closed 4 months ago

simonerd commented 4 months ago

I have a template that loops through child pages of a structured collection with the {{ children }} tag. Unfortunately, the augmentation hook doesn't trigger and the child pages are not added as tags to the CacheTracker. Adding the hook for the Statamic\Structures\Page-class fixes that.