You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to request a new API Function in ZenCache that would allow a site owner to clear the cache for a specific URL. We recently added one that allows you to clear a specific post ID, but it would be easier for most people if this could be extended to allow for a specific URL that they provide.
/*** This clears the cache for a specific URL.** @since 15xxxx Adding support for custom URLs.** @param string $url Input URL to clear.** @return int Total files cleared (if any).*/publicstaticfunctionclearUrl($url)
$regex = $GLOBALS[GLOBAL_NS]->buildHostCachePathRegex($url);
The text was updated successfully, but these errors were encountered:
Enhancement: Added a new API Function that allows a site owner to clear the cache for a specific URL via zencache::clearUrl($url);. See this article for further details. Props @kristineds. See Issue #590.