Mercurial > dive4elements > river
annotate artifacts/contrib/flush_cache.sh @ 9803:a440ebd5c23b 3.2.x tip
Avoid using outdated mod_wsgi in Docker setup
Run Wiki in standalone mode behind reverse proxy, which is provided by
a more up-to-date Apache web server. The wiki container is still based
on CentOS 7, because the included SSO integration component cannot be
build with more recent libraries.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 21 Aug 2024 16:54:17 +0200 |
parents | 5aa05a7a34b7 |
children |
rev | line source |
---|---|
5571
d0c8cfb493f5
Add flush_cache helper script to document the functionality how
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
1 #!/bin/bash |
d0c8cfb493f5
Add flush_cache helper script to document the functionality how
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
2 |
d0c8cfb493f5
Add flush_cache helper script to document the functionality how
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
3 if [ $# != 2 ]; then |
d0c8cfb493f5
Add flush_cache helper script to document the functionality how
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
4 echo "usage $0 <artifact-server-port> <cachename>" |
d0c8cfb493f5
Add flush_cache helper script to document the functionality how
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
5 echo " cachename is the name of the cache defined in conf/caches.xml" |
5574
9245ef9e349b
Backed out changeset 2eeb9a45cd2e
Tom Gottfried <tom@intevation.de>
parents:
5573
diff
changeset
|
6 echo " for example: $0 12123 datacage.db" |
5571
d0c8cfb493f5
Add flush_cache helper script to document the functionality how
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
7 exit 1 |
d0c8cfb493f5
Add flush_cache helper script to document the functionality how
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
8 fi |
d0c8cfb493f5
Add flush_cache helper script to document the functionality how
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
9 |
d0c8cfb493f5
Add flush_cache helper script to document the functionality how
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
10 curl -d @- http://localhost:$1/service/cache-invalidation << EOF |
d0c8cfb493f5
Add flush_cache helper script to document the functionality how
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
11 <?xml version="1.0" ?> |
d0c8cfb493f5
Add flush_cache helper script to document the functionality how
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
12 <caches> |
d0c8cfb493f5
Add flush_cache helper script to document the functionality how
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
13 <cache name="$2"/> |
d0c8cfb493f5
Add flush_cache helper script to document the functionality how
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
14 </caches> |
d0c8cfb493f5
Add flush_cache helper script to document the functionality how
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
15 EOF |