thoughtco / statamic-cache-tracker

12 stars 2 forks source link

Add support for adding tags by dispatching an event #12

Closed ryanmitchell closed 3 months ago

ryanmitchell commented 3 months ago

This PR adds support for adding tags by dispatching an event, for example within a custom controller:

public function index() 
{
    \Thoughtco\StatamicCacheTracker\Events\TrackContentTags::dispatch(['additional::tag']);
}