Skip to content

Commit

Permalink
missed committing these
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed May 6, 2024
1 parent 1d4d347 commit 4451353
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
scyllaridae
scyllaridae.yml
!examples/*/scyllaridae.yml
6 changes: 3 additions & 3 deletions examples/cache-warmer/cmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ mygrep() {
PARALLEL_EXECUTIONS=3

# Base URL of the sitemap.xml file
BASE_URL="https://$1/sitemap.xml"
BASE_URL="https://$DOMAIN/sitemap.xml"
PAGE=1

while true; do
Expand Down Expand Up @@ -54,12 +54,12 @@ done

rm -f links.xml

curl -v http://drupal/api/v1/paged-content > pc.json
curl -v "https://$DOMAIN/api/v1/paged-content" > pc.json

mapfile -t NIDS < <(jq -r '.[]' pc.json)
for NID in "${NIDS[@]}"; do
echo "Processing: $NID"
curl -s -o /dev/null "http://drupal/node/$NID/book-manifest?cache-warmer=1"
curl -s -o /dev/null "https://$DOMAIN/node/$NID/book-manifest?cache-warmer=1"
done

rm -f pc.json
6 changes: 6 additions & 0 deletions examples/cache-warmer/scyllaridae.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
allowedMimeTypes: [
"*"
]
cmdByMimeType:
default:
cmd: "/app/cmd.sh"

0 comments on commit 4451353

Please sign in to comment.