-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dynamic sitemap generation route and caching mechanism
- Added a route to dynamically generate sitemap.xml on the first request. - Implemented caching mechanism to serve the generated sitemap.xml from the directory on subsequent requests. - Updated the Flask app to include the generate_sitemap function. - Ensured the sitemap is generated during the initial deployment and reused afterward. This change improves the SEO functionality by ensuring the sitemap is always available and up-to-date, with minimal performance overhead.
- Loading branch information
1 parent
d0b1f72
commit 6c1dc5e
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters