Skip to content

Commit

Permalink
made purging path depending on ASP/Domain config (req by KNL)
Browse files Browse the repository at this point in the history
svn path=/ZMS/trunk/; revision=5045
  • Loading branch information
Dr. Frank Hoffmann committed Jun 4, 2019
1 parent 875b090 commit 47f9094
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ url = context.getHref2IndexHtml({'lang':request['lang'],'preview':''})
if len(ip_or_domain)>0 and url.find('/content')>-1:
# url = ip_or_domain + url
url = ip_or_domain + url.split('/content')[1]
if ip_or_domain.find('/content') > 0:
url = ip_or_domain + url.split('/content')[1]
else:
url = ip_or_domain + '/content' + url.split('/content')[1]
else:
# strip protocol
url = url.replace('https://','').replace('http://','')
Expand Down Expand Up @@ -59,7 +62,7 @@ return '<br />'.join(msg)
</list>
</item>
<item key="name"><![CDATA[Cache-Purge]]></item>
<item key="revision"><![CDATA[3.0.0]]></item>
<item key="revision"><![CDATA[3.0.2]]></item>
<item key="roles" type="list">
<list>
<item><![CDATA[ZMSAdministrator]]></item>
Expand Down Expand Up @@ -141,7 +144,7 @@ return '<br />'.join(msg)
</list>
</item>
<item key="name"><![CDATA[Cache-Purge (List)]]></item>
<item key="revision"><![CDATA[3.0.1]]></item>
<item key="revision"><![CDATA[3.0.0]]></item>
<item key="roles" type="list">
<list>
<item><![CDATA[ZMSAdministrator]]></item>
Expand Down

0 comments on commit 47f9094

Please sign in to comment.