Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return generated sitemap? #22

Open
nathanl opened this issue Oct 23, 2017 · 1 comment
Open

Return generated sitemap? #22

nathanl opened this issue Oct 23, 2017 · 1 comment

Comments

@nathanl
Copy link
Contributor

nathanl commented Oct 23, 2017

When I follow the docs and make a generate method, it calls write on my adapter from within the create call. But create returns only :ok.

My sitemap is pretty small and fast to generate, and I'm hosting on Heroku, where writing to a file is not an option. The simplest option for me would be to just generate the sitemap synchronously, on request, from a controller. But I don't see a way to do that currently. I may have my adapter write the sitemap to a cache that can be read in-request, but it's not the simplest way to start.

Is there some way to generate and return the sitemap in-memory?

@Schultzer
Copy link
Contributor

Hi @nathanl , I had the same issue and it seams that this repo is unmaintained, but if you still in need you can try this one https://hex.pm/packages/fast_sitemap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants