Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chi-teck/touch-site
Touch site Drush command
https://github.com/chi-teck/touch-site
drupal drush
Last synced: about 1 month ago
JSON representation
Touch site Drush command
- Host: GitHub
- URL: https://github.com/chi-teck/touch-site
- Owner: Chi-teck
- License: gpl-2.0
- Created: 2016-04-30T10:42:19.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-30T11:55:40.000Z (almost 9 years ago)
- Last Synced: 2024-11-07T20:54:47.332Z (3 months ago)
- Topics: drupal, drush
- Language: PHP
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Touch site Drush command
A simple [Drush](https://github.com/drush-ops/drush) command that sends an http request to the front page of the Drupal site.
## Problem / Motivation
The first time you open your Drupal site after clearing cache using CLI tools (like Drush or Drupal Console) the access may be very slow. This command warms the cache by loading front page of the site.## Usage
Run `drush touch-site` or `drush ts` in the site directory. You can "touch" your site immediatly after cache clearing as follows: `drush cc all && drush ts`. Notice that some Drush commads (like `drush en`) may clear Drupal cache implicitly.## Requirements
You should specify url of the site by providing URI option. This can be done through command line as follows `drush ts --uri=http://localhost/path/to/drupal` or by using [drushrc.php](http://api.drush.org/api/drush/examples!example.drushrc.php/master) file (recommended way).
```php