+ Reply to Thread
Results 1 to 10 of 14

Thread: Cronjob not updating sitemap.xml

Hybrid View

  1. #1
    Curtis says:
    via cron jobs. If your crontab configured properly that cron file will check XML file: it will create it if files missing; it will updated if last date of modifying files more then 24hours
    Last edited by Bahram Soltanirad; February 22, 2022 at 11:35 AM.

  2. #2
    Quote Originally Posted by Bahram Soltanirad View Post
    via cron jobs. If your crontab configured properly that cron file will check XML file: it will create it if files missing; it will updated if last date of modifying files more then 24hours
    But it should update every time the cron is running. If new listing are added or removed from site it should change the listings.xml every time the cron is running to keep the content up to date. Not updating every 24hours.

    Why is the sitemap.xml updating every time the cron is running but not updating the account, listings, pages xml etc etc ?


    the sitemap.xml shows this: <lastmod>2022-02-22T12:39:01+00:00</lastmod> for all the sitemaps but this is wrong as the sitemap files aren't updated with new and removed listings
    Last edited by Peter Jonsson; February 22, 2022 at 11:42 AM.
    Classifieds Site: Annonssida
    Other Site: SEO

+ Reply to Thread