Submitted by Thao Huynh on November 25, 2015 - 22:44
Open settings.php add these lines:
$settings['container_yamls'][] = DRUPAL_ROOT . '/sites/development.services.yml';
$settings['cache']['bins']['render'] = 'cache.backend.null';
Use drush with command drush cr to clear all cache
Submitted by Thao Huynh on June 24, 2015 - 13:13
- Install Homebrew with command:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Use Homebrew install drush with commands
brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/php
brew install php55
brew install composer
brew install drush
Submitted by Thao Huynh on January 27, 2014 - 11:29
Tips update Drupal core with Drush:
- Make sure you enabled "Update manager" module otherwise enable it with Drush by command:
drush en update
- Always backup your site and database before update Drupal core.
- Run Drush command to update Drupal core:
drush up drupal
Submitted by Thao Huynh on December 22, 2013 - 21:00
In drush/commands/pm/package_handler/wget,inc
// Add to URL so it is part of the cache key . Dev snapshots can then be cached forever.
if (strpos($release['download_link'], '-dev') !== FALSE) {
$release['download_link'] .= '?date=' . $release['date'];
}
$filename = basename($release['download_link']);
should probably be replaced with this: