Hello this is an example for cache warmer script to be added after wordpress update script Code: #!/bin/bash ALIAS='@ddc.production' URL='DOMAIN' wget --quiet https://$URL/sitemap.xml --no-cache --output-document - | egrep -o "https://$URL[^<]+" | while read line; do time curl -A 'Cache Warmer' -s -L $line > /dev/null 2>&1 echo $line done echo cache warmed
Nice thanks for sharing definitely something useful. I have been working on something similar for sites in general and not just wordpress. So we shall see