Help with Severe Caching issues I suspect?

Hey guys, what are some likely hazarding a guess caching issues I may be suffering when using a theme selector for specific domain names? Basically, all my pages have unique permalinks and depending on the base url [4 in total] of the pages, a specific theme is selected - this has so far functioned well, except for some anomalies where certain elements [mainly images] wouldn't render until I did a hard-refresh of the page in the browser; 'there doesn’t appear to be any consistency to when this happens?' I have seemed to have made this occurrence worse after adding a rewrite rule, basically making anything from the Media folder not display. Weirdly when this happens [with the rule enabled that is], I can get the images to show by opening a page from the backend that has an image element in it (not editing or changing anything), but simply press publish, then all the images for all the domains appear again once I browse to them??? This is really driving my cuckoo and I'm finding it really hard to debug as there doesn’t appear to be any reason or regular method to instigate it happening?


<rule name="Rewrite - /[domain name]/*/ to /*" enabled="true">
      <match url="^(.*)" />
      <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
        <!--<add input="{REQUEST_URI}" pattern="^(Media$)" negate="true" />-->
        <add input="{REQUEST_URI}" pattern="cbc/index" negate="true" />
        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
        <add input="{HTTP_HOST}" pattern="^(www.)?bicr.com.au" negate="true" />
        <add input="{HTTP_HOST}" pattern="^(www.)?eee.com.au" negate="true" />
        <add input="{HTTP_HOST}" pattern="^(www.)?(.*).com.au" />
      <action type="Rewrite" url="{C:2}{REQUEST_URI}" />

Has anyone got any clues or experienced this before. Thanks for your time, PP

Re: Help with Severe Caching issues I suspect?

Not sure what your asking, but your rewrite rule looks funny to me. Here is my Rewrite, "at root", on a shared server. Moving to sub-directory somedomain1 My code formatting not right.

<?xml version="1.0" encoding="utf-8"?> ` <system.webServer> ` <rewrite> ` <rule name="www-multi" stopProcessing="true">` <match url="(.*)" /> ` <add input="{HTTP_METHOD}" pattern="^GET$" />` <add input="{HTTP_HOST}" pattern="^www\.(.*)$" /> ` <action type="Redirect" url="http://{C:1}/{R:0}" /> ` <rule name="Rewrite to SOMEDOMAIN Root" stopProcessing="true">` <match url="(.*)" /> ` <add input="{HTTP_HOST}" pattern="^(www\.)?somedomain.com$" />` <add input="{PATH_INFO}" pattern="^/mansbooks1/" negate="true" /> ` <action type="Rewrite" url="/somedomain1/{R:1}" />` </rule> ` </rewrite> `
</system.webServer> `

Wednesday, February 10, 2016 7:11:09 PM bydonaldboulton

Re: Help with Severe Caching issues I suspect?

Interesting donaldboulton, thanks for the reply. I believe you're right - whether my rewrite is poorly formed or not - it does seem to be the crux of the problem. For once I sorted how to properly clear cached rules, I've managed to discover that I'm plagued by 'link folder depth issues' in the form of: "Cannot use a leading .. to exit above the top directory." [so my original post is pretty well null and void now...]

Noting your first rule, wouldn’t that redirect to basically the same link, then with your rewrite actually add an additional folder. I'm really interested for I believe any rule that doesn’t make folder depths equal before and after could bring about the above error if the code included ~/ , ../ etc. So if your successfully altering your links I would love to know more about what you are doing and how - sorry to be a pain - but I'm really desperate. PP

Thursday, February 11, 2016 12:29:31 PM bypigpen
  • pigpen
  • Lv. 02 Rookie
  • Total EXP: 58

Re: Help with Severe Caching issues I suspect?

Did not read you post close enough. Images not displaying is simple = enable MODULE, "Upgrade of of Orchard instances", once enabled go to the upgrade to 1.8 or above; "and click the admin link Upgrade" , Upgrade all links, SIte settings to menu item parts. Then the top admin page links go to to Media 1.7 or above and Migrate Media Files this will record folder image data to the data set your just created for your images in your Media folder linking the database to your folders of images. Then your images will display = common orchard issue.

Sunday, February 14, 2016 1:08:44 AM bydonaldboulton

Post a reply

You need to be signed in to post a reply.

Sign In