Closed darkponyhq closed 4 years ago
You can simply do:
LSCache::purge('/an-article-slug,/');
That will purge both entries.
You can also assign your pages tags using lstags
and purge based on this.
Fantastic,
why don't you add this to the documentation?
TA
It has been added to the README file.
Hi,
We are trying to purge single articles + the homepage of a website upon updating a single article.
Having:
does not work since headers are already send.
Is it possible to have purge extended in order to support multiple slugs (similar to multiple tags)
e.g.
LSCache::purge('/slug1', '/slug2', .... )
Thanks