Why is my Laravel SEO sitemap not updating automatically?

Author
Isabella Ramirez Author
|
3 months ago Asked
|
180 Views
|
2 Replies
0

Urgent: Dynamic XML Sitemap for Laravel isn't Auto-Updating!

I'm completely stuck and tearing my hair out trying to fix this. We're using the 'Dynamic XML Sitemap for Laravel & All Websites' product, specifically for a Laravel application, and it's just not doing what it's supposed to.

The Core Problem:

  • The sitemap (sitemap.xml) isn't updating automatically with new content.
  • New pages aren't being indexed, and old, removed pages are still showing up, completely messing with our Laravel SEO efforts.
  • This is critical for our content-heavy site, and manual updates are just not sustainable.

What I've Checked/Tried So Far:

  • Confirmed the cron job for sitemap generation is running (php artisan sitemap:generate).
  • Cleared Laravel cache (php artisan cache:clear, config:clear, etc.).
  • Checked logs for any errors related to sitemap generation – nothing obvious.
  • Verified the configuration in config/sitemap.php seems correct for dynamic models.

Desperate for Solutions:

Has anyone else faced issues with the 'Dynamic XML Sitemap' product not auto-updating in a Laravel environment? What could be causing this? Are there any common pitfalls or specific configurations I might be missing for proper Laravel SEO dynamic sitemap updates?

Any help or pointers would be a lifesaver right now!

Thanks in advance!

2 Answers

0
MD Alamgir Hossain Nahid
Answered 3 months ago

It sounds like a common sync challenge. Even with the cron running, the typical culprits for a Laravel sitemap not auto-updating are often an unoptimized query within the sitemap generator that isn't pulling your latest Eloquent models, or a persistent server-level cache overriding the updated sitemap.xml. For consistent updates and better crawl budget management, consider a dedicated tool like Dynamic XML Sitemap for Laravel & All Websites (Auto-Updating & Future-Proof), or even spatie/laravel-sitemap for a custom setup.

Have you verified the actual contents of the generated sitemap file on disk after the cron runs versus what the browser serves?

0
Isabella Ramirez
Answered 3 months ago

Ah, got it! Checking the sitemap contents on disk vs. browser was definitely the key – solved it! ...and now I've unlocked a new level of problems, because now I'm seeing a bunch of "Indexed, though blocked by robots.txt" errors for some new pages in GSC.

Your Answer

You must Log In to post an answer and earn reputation.
AdsVolt Support AI
Online

Connecting to AdsVolt AI...

AI is typing