https://github.com/dennisinteractive/dennis_cache_warmer
Warm the cache while still in maintenance mode
https://github.com/dennisinteractive/dennis_cache_warmer
Last synced: about 1 year ago
JSON representation
Warm the cache while still in maintenance mode
- Host: GitHub
- URL: https://github.com/dennisinteractive/dennis_cache_warmer
- Owner: dennisinteractive
- License: gpl-2.0
- Created: 2017-08-11T13:49:24.000Z (almost 9 years ago)
- Default Branch: 7.x-1.x
- Last Pushed: 2017-08-16T13:47:22.000Z (almost 9 years ago)
- Last Synced: 2025-05-19T14:52:26.513Z (about 1 year ago)
- Language: PHP
- Size: 14.6 KB
- Stars: 0
- Watchers: 47
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dennis Cache Warmer
Warm the cache while maintenance mode is still on.
Bypassing maintenance mode requires admin access.
* Either an existing admin account can be used, in which case both the username & password must be passed as options: `drush dennis-cache-warm --username=admin --password=password http://auth.example.com`
* Or let drush create a temporary admin user:`drush dennis-cache-warm --autouser http://auth.example.com` This requires drush to be running on the same server as the site.
To use custom paths, rather than the built in ones ( _/, /news, /reviews, /contact-us_ ) give the **--paths** option the absolute path to a text file that has paths listed, one per line: `drush dennis-cache-warm --autouser --paths=/home/vagrant/repos/dennis_distro_7/sites/autoexpressuk/warm_cache.txt http://auth.example.com`
To use with maintenance mode off use the --mode option: `drush dennis-cache-warm --mode=off http://auth.example.com`