Warm a Page Cache Within Tugboat
If your web application has a page caching layer, you can prime the cache from within the Tugboat config file. This code snippet should get you started:
1services:
2 php:
3 commands:
4 build:
5 # Warm the cache
6 - 'wget -e robots=off --quiet --page-requisites --delete-after --header "Host: tugboatqa.com" http://localhost
7 || /bin/true'Calling localhost will cause Tugboat to load the front page of your application. page-requisites loads all images,
and delete-after removes the downloaded assets to preserve disk space.