return $counter; // Nothing to do. } if (!is_dir($cache_dir = $self->cacheDir())) { return $counter; // Nothing to do. } $utils = new FeedUtils(); // Feed utilities. $variations = $variation_regex_frags = array(); // Initialize. switch ($type) { // Handle clearing based on the `$type`. case 'blog': // The blog feed; i.e. `/feed/` on most WP installs. $variations = array_merge($variations, $utils->feedLinkVariations()); break; // Break switch handler. // Break switch handler. case 'blog-comments': // The blog comments feed; i.e. `/comments/feed/` on most WP installs. $variations = array_merge($variations, $utils->feedLinkVariations('comments_')); break; // Break switch handler. // Break switch handler. case 'post-comments': // Feeds related to comments that a post has. if (!$post_id) { break; // Break switch handler. }