geta-notfoundhandler icon indicating copy to clipboard operation
geta-notfoundhandler copied to clipboard

New redirects are not being applied until after a restart

Open odalton opened this issue 1 year ago • 2 comments

Hi we are running the plugin on a production site with on average ~10 servers. we are running cms12 on a linux servers.

We have noticed an issue where new redirects are added through the geta ui seem to add ok to the list / database but the redirect is not applied until we restart all servers.

we dont seem to encounter the issue in our non prod environments (these are normally running 1-2 servers on average) just wondering if you could suggest anything to help?

  • currently our workaround is to bounce all servers 1 at time

Name Description Version Company License More Info EPiServer.Business.Commerce EPiServer Commerce 14.27.0.0 Episerver EPiServer.Cms.Shell.UI OnLine Center support for EPiServer CMS 12.31.2.0 Episerver AB EPiServer.Commerce.ODP Scheduled job to pass data to ODP 14.27.0.0 Episerver EPiServer.Commerce.Reporting EPiServer Commerce Reporting 14.27.0.0 Episerver EPiServer.Find.Cms Optimizely (Episerver) Web Content Management System - Search & Navigation 16.3.0.0 Episerver AB EPiServer.Forms.UI Episerver Web Content Management System 5.9.1.0 Optimizely EPiServer.LinkAnalyzer Link analyzer for Episerver CMS 12.21.8.0 Episerver AB EPiServer.Personalization.Commerce Episerver Commerce integration for Episerver Personalization. 4.1.22.0 Episerver EPiServer.UI Legacy project with quicknavigator and shell parts 12.31.2.0 Episerver AB

Geta.NotFoundHandler.Optimizely This library contains a NotFound handler Admin user interface integration in an Optimizely project. 5.0.8.0 Geta Digital Geta.Optimizely.Sitemaps Search Engine Sitemap generator for Optimizely 3.1.2.0 Geta Digital Geta.Optimizely.Tags Easily add tags to your EPiServer content and use the powerful query engine to get back what you want. 2.0.7.0

odalton avatar Nov 25 '24 04:11 odalton

Looking at the code, it seems that OptimizelySyncEvents is either not registered or is registered in the incorrect order.

Could you please confirm that the required registration exists in the application builder and is the first in order, like in provided example?

public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
    app.UseNotFoundHandler();
    app.UseOptimizelyNotFoundHandler();

jevgenijsp avatar Dec 12 '24 08:12 jevgenijsp

Hi @jevgenijsp / Geta Support,

Thanks very much for the response.

We have implemented the startup.cs that matches the example foundation project in the geta notfound github. Our startup file is slightly different to yours where we have a openid config just before.

  • Do you think this could be the cause?
  • We have also implemented a custom 404 page in our project.

The plugin in the admin CMS loads fine and we have just bumped the version to 5.0.10 in our non prods and it works perfectly and we will attempt to release this to production but we have only seen the caching issue in the prod as the non prod environments only have 1-2 servers max where our prod environment has 10 +. https://www.example.com/EPiServer/Geta.NotFoundHandler.Optimizely/container

see image example : https://imgur.com/a/c0n5H5o (aws was blocking image attachments on)

odalton avatar Dec 27 '24 00:12 odalton