You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have about 1500 redirects with regexs and redirector made my app significantly slower because of querying database each request. Maybe it would be great to implement some cache.
No criticism of this gem, it may have good use cases when you need to build up db of redirects or you run very small app ... I'm just leaving note here for someone in situation when set of redirects is larger and finished ...
The text was updated successfully, but these errors were encountered:
Thanks @jhovad. A cache seems like a worthy cause for large scale use cases. We don't have any active maintainers of this gem anymore unfortunately. If you were sticking with it I'd encourage you to throw a PR in, but it sounds like you've found a more performant path.
I have about 1500 redirects with regexs and redirector made my app significantly slower because of querying database each request. Maybe it would be great to implement some cache.
I moved to https://github.com/jtrupiano/rack-rewrite for this amount of redirects.
No criticism of this gem, it may have good use cases when you need to build up db of redirects or you run very small app ... I'm just leaving note here for someone in situation when set of redirects is larger and finished ...
The text was updated successfully, but these errors were encountered: