Discussions
How can I dynamically purge cache by tag using the Mlytics API?
Hi everyone,
I'm currently integrating Mlytics into a custom CMS and I want to implement a feature that allows editors to purge cached content dynamically by tag whenever an article is updated or unpublished.
I’ve read the API documentation and found the purge endpoint, but it's not entirely clear whether purging by tag is supported, and if so, how the tagging system should be set up or associated with assets in the first place.
Here are a few specific questions I’m hoping someone can clarify:
Is cache purge by tag currently supported in the Mlytics API?
If yes, how do I associate a tag with an asset (e.g., a URL or group of URLs)?
Can tags be custom-defined (e.g., tag:article-123) or are they limited to predefined scopes?
Are there rate limits or delays we should be aware of when purging by tag?
Any guidance, sample payloads, or best practices from your experience would be greatly appreciated. Thanks in advance!
—