Skip to main content
3 of 4
edited title
Mark Cassidy
  • 25.4k
  • 7
  • 59
  • 117

Request processor executing multiple times per page load

I have written a custom processor in Sitecore to set the context language and country code. I am calling this processor on http begin request. The problem I am facing is that the processor is executing multiple times on page load for each component load. Below is my patch config file.

<httpRequestBegin>
        <processor patch:after="*[@type='Sitecore.Pipelines.HttpRequest.FileResolver, Sitecore.Kernel']" type="custom-processor class, custom-processor" />

</httpRequestBegin>

Now I want to restrict my processor to execute only one time on page load and not on each component laod.

Please let me know how can I do this

user2332873
  • 635
  • 1
  • 5
  • 12