Remove daily sitemap before writing if it already exists
If for some reason the sitemap generator is called twice in a day, it
fails the second time while trying to overwrite the previous version.
This can be fixed by removing all sitemaps for the current day before
attempting to regenerate them.
Change-Id: I48c3ff5c99948e4c5ab93007f068f0319dfac2f8
Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
Please register or sign in to comment