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

Caching / re-load from database #243

Open
nma76 opened this issue Mar 16, 2023 · 1 comment
Open

Caching / re-load from database #243

nma76 opened this issue Mar 16, 2023 · 1 comment

Comments

@nma76
Copy link

nma76 commented Mar 16, 2023

Hi,
I just noticed that when using Redirection Manager with database replication, the server using the replicated database doesn't pick up the new rules added. I can see that the rule is replicated and do exist in the database, but the server do not redirect the new url. Restarting the app-pool ofc picks up the new rules.

Is there any configuration i can do to make the replicated server aware that new rules has been added? Or can i force it to reload from database in any way?

@evest
Copy link
Contributor

evest commented Mar 17, 2023

This was added in the .NET Core repo, it should be possible to back-port here: https://github.com/Geta/geta-notfoundhandler/blob/master/src/Geta.NotFoundHandler.Optimizely/Core/Events/OptimizelySyncEvents.cs

An "outside" workaround would be to add an API or controller on your site, that uses the Episerver event system to post a similar message to clear the 404 cache. Episerver will distribute the event to all servers, and you write the code that clears the cache. Next request would build the cache again.

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