404handler icon indicating copy to clipboard operation
404handler copied to clipboard

Caching / re-load from database

Open nma76 opened this issue 2 years ago • 1 comments

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?

nma76 avatar Mar 16 '23 17:03 nma76

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.

evest avatar Mar 17 '23 07:03 evest