Skip to main content

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

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

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.

edited title
Link
Mark Cassidy
  • 25.4k
  • 7
  • 59
  • 117

Sitecore HTTP Request Pipelineprocessor executing multiple times per page load

I have written a custom pipelineprocessor in Sitecore to set the context language and country code. I am calling this pipelineprocessor on http begin request. The problem I am facing is that the pipelineprocessor 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 pipelineprocessor to execute only one time on page load and not on each component laod.

Please let me know how can I do this

I have written a custom pipeline in Sitecore to set the context language and country code. I am calling this pipeline on http begin request. The problem I am facing is that the pipeline 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 pipeline to execute only one time on page load and not on each component laod.

Please let me know how can I do this

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

Source Link
user2332873
  • 635
  • 1
  • 5
  • 12
Loading