I have written a custom processor in Sitecore to set the context language and country code. I am calling this processor on
httpRequestBegin pipeline. 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.