- Installing SureRank
- SureRank Onboarding Guide
- How to Activate Your SureRank Pro License
- SureRank Dashboard Overview
- General Settings
- Advanced Settings
- Search Console – SureRank
- Managing URL Redirection in SureRank
- SureRank Feature Management – Quick Guide
- Robots.txt Feature in SureRank
- How to Migrate from Rank Math to SureRank
- How to Migrate from Yoast to SureRank
- How to Migrate from SEOPress to SureRank SEO
- How to Migrate from Squirrly SEO to SureRank
- How to Migrate from All in One SEO (AIOSEO) to SureRank
- How to Migrate from Slim SEO to SureRank
- Migration Failed: How to Diagnose
- After You Migrate: Verification and Cleanup Checklist
- Sitemaps in SureRank
- How to Enable Video Sitemap in SureRank Pro
- How to Enable the News Sitemap in SureRank
- How to Show the HTML Sitemap on Your Site in SureRank Pro
- How to Regenerate the Sitemap After Excluding a Post Type in SureRank
- Change the Sitemap URL in SureRank
- How to Enable Author Sitemap in SureRank
- How to Exclude Post Types from the Sitemap
- How to Enable the Author Sitemap and Why Authors Are Excluded (Pro)
- Editing Meta Box
- SureRank – Page SEO ChecksÂ
- Enabling Page SEO Checks in WordPress
- Image Alt Text – Automatic Optimization
- Link Manager
- Using the SureRank Front-End Meta Box
- How to Edit the Meta Title and Description for a Single Page or Post
- Controlling Indexing with Robot InstructionsÂ
- How to Set Global Title and Description Templates with Variables
- How to Set a Canonical URL and How the Canonical Field Works
- How to Fix WWW and Non-WWW Version Redirects to Improve Your SEO
- How to Fix: No H1 Heading Found on Your Homepage
- How to Fix Missing H2 Headings on Your Homepage
- Re-run Checks Button in SureRank
- Fix Critical Error: Another SEO Plugin Detected in SureRank
- Fix Warning: Site Tagline Is Not Set in SureRank
- How to Fix: Robots.txt Contains Invalid Rules in SureRank
- How to Fix Multiple SEO Plugins Detected on Your Site
- How to Fix: Homepage is Not Indexable by Search Engines
- Warning: Homepage Does Not Contain Internal Links
- How to Fix: Search Engine Title is Missing on the Page
- Page Level SEO: Broken Links Detected
- How to Fix Missing Alt Text on Images
- How to Fix Page URLs That Are Too Long
- Page Level SEO Warning: No Links Found on This Page
- Page Level SEO Warning: No Images or Videos Found
- Page Level SEO Warning: Missing Search Engine Description
- Page Level SEO Warning: No Subheadings Found on This Page
- Page Level SEO Warning: Canonical Tag is Missing
- Page Level SEO Warning: Open Graph Tags Missing
- What is Google Search Console and how does SureRank use it?
- Recommended Image Sizes
- SureRank – SEO Check Severity Guide
- Using SureRank with Other SEO Plugins – Best Practices
- Import/Export Feature – SureRank Plugin
- What is llms.txt and Does SureRank Support It?
- Does SureRank offer a keyword rank-tracking feature?
- Does SureRank Come With Google Analytics Integration?
- Email Summary in SureRank
- SureRank Role Manager
- Search Engines Not Indexing Your WordPress Site?
- Sitemap Not Showing in SureRank
- Fixing robots.txt Issues in SureRank
- Why a Working Link Is Flagged as Broken (404)
- Which Pages Are Included in Your SureRank Sitemap
- Fixing False SEO Audit Warnings Caused by Caching
- Fixing “Couldn’t Fetch” for Your Sitemap in Google Search Console
- Troubleshooting: Favicon and Logo in Google Search Results (Supported Formats and CDN Gotchas)
- Customize XML Sitemap Top Bar with surerank_sitemap_top_bar_data
- Analyze ACF Field Content with SureRank
- Preserve Modified Date During Updates surerank_freeze_modified_date
- Customize Final Title Tag surerank_final_title
- Customize Post Type Archive Title Output surerank_post_type_archive_title
- Customize Archive Page Title with surerank_archive_title
- CustomizeModify the Search Results Page Title surerank_search_title
- Customizing the 404 Page Title surerank_not_found_title
- Customizing the Title Separator surerank_title_separator
- How to Remove Archive Prefixes from Titles Using SureRank
- Customize Homepage Pagination Format surerank_homepage_pagination_format
- Customize Maximum SEO Title Length surerank_title_length
- Enable/Disable Pagination in SureRank Archives surerank_show_pagination
- Show or Hide Site Name in SEO Title surerank_show_site_name
- Customize Robots Meta Tags surerank_robots_meta_array
- Add “noindex” to Paginated Pages surerank_noindex_paginated_pages
- Customize Meta Description Length surerank_description_length
- Customize Product Category Rewrite Rules surerank_product_category_rewrite_rules
- Remove Product Category Base surerank_remove_product_category_base
- Customize Category URL Structure surerank_remove_category_base
- Disable Permalinks in RSS Feeds surerank_disable_permalink_in_feed
- Customize Maximum URL Slug Length surerank_url_length
- Disable Feed Indexing in SureRank surerank_disable_feed_indexing
- Open External Links in New Tab
- Enabling the AI (MCP) Integration and Connecting an AI Client
- Regenerating the SureRank Sitemap Cache with WP-CLI
Regenerating the SureRank Sitemap Cache with WP-CLI
Command: wp surerank generate_cache [–force]
What It Does
SureRank stores its XML sitemap as pre-built cache files rather than generating it fresh on every request. This cache is normally rebuilt automatically:
- Every 6 hours in the background
- Immediately when your content changes, on sites where scheduled background tasks aren’t running reliably
wp surerank generate_cache triggers that same rebuild on demand, the same process used by the “Regenerate” button in your SureRank dashboard. It walks through every public post type and taxonomy on your site, rebuilds the sitemap files, and doesn’t return control back to you until the rebuild finishes (or fails).
Options
| Option | Description |
| –force | Skip the check for whether anything changed, and rebuild the sitemap unconditionally. |
Without –force, SureRank checks whether your site’s content has changed since the last build. If nothing changed, it exits early:
Checksums match; no data available to sync.
Use –force to rebuild regardless, for example after changing your sitemap inclusion settings, after a bulk import, or when troubleshooting a sitemap that looks stale or broken.
Usage
wp surerank generate_cache # rebuild only if content changed
wp surerank generate_cache –force # always rebuild
Example output:
$ wp surerank generate_cache –force
The batch process started.
Batch Process Complete!
SureRank Cache generated successfully
When to Use This
- Your sitemap shows stale content and you don’t want to wait for the next automatic rebuild.
- Scheduled background tasks (WP-Cron) are disabled or unreliable on your hosting environment.
- You’re scripting a rebuild into a deploy, a staging-to-production sync, or a bulk migration.
- You want a first troubleshooting step for a stale or broken sitemap before contacting support.
Notes
- Requires WP-CLI access with normal command-line permissions on your site. No separate SureRank permission is needed.
- On large sites, this command temporarily raises memory limits and removes time limits for the duration of the rebuild, since it runs the whole process immediately rather than in smaller background batches.
- The rebuild is safe to interrupt: your existing sitemap keeps working normally until the new one is fully built, so a failed or interrupted run never leaves you with a broken sitemap.
We don't respond to the article feedback, we use it to improve our support content.