When recently working on a WordPress website that generated pages from an API that aren’t stored in the main site database, I discovered that the W3 Total Cache admin bar link to clear the current page’s cache didn’t work.
The ‘Purge Current Page’ link in the Performance menu item works by passing the current post ID to a function that clears the cache by an ID. Since this only works for single posts, it also doesn’t work on post archives and term listing pages.
So I wrote a small plugin to clear the current page’s cache by its URL.
Continue reading “Clear W3 Total Cache by URL From the Admin Bar or Dashboard”