Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Steve 140 posts 321 karma points
    Nov 20, 2015 @ 20:21
    Steve
    0

    Cache User Control Macro for multi language site

    Hello All,
    We have a multi language site divided by hostname like www.site.com/en, www.site.com/fr etc. Domains are set by the Culture and Hostnames settings under the 'Home' node. We have a user control macro which provides the html for a particular page and cached it with the setting 'Cache by Page' checked. It would cache the content for each language.
    We recently divided the macro into two files and now place the two macros on the page individually (one is a filter, one is a product display).
    Unfortunately, if we cache the macro and select 'Cache by Page' the server now caches the first version of the HTML generated and serves that to every page, regardless of the current domain / language setting.
    Other than breaking up the code in the macro into the two .ascx files and placing the macros individually, nothing else has been changed.
    Anyone have any ideas of what might be causing this?
    Thanks, Steve

Please Sign in or register to post replies

Write your reply to:

Draft