/** * resets all the caches in the site * @static * @return Always true */ function resetAllCaches() { // get a list of all the blogs $blogs = new Blogs(); $siteBlogs = $blogs->getAllBlogIds(); // and loop through them foreach ($siteBlogs as $blogId) { CacheControl::resetBlogCache($blogId, false); } // clear the cache used by the summary CacheControl::clearSummaryCache(); return true; }