Skip to content

Instantly share code, notes, and snippets.

NOTE ON DRUSH: Use composer do not trust brew install drush NVM: Install via brew (JF) or curl (AK) -- DON'T MESS UP GLOBAL SETTING ALSO: This is outdated ... cask seems to have integrated with brew ...

#Getting OSX Ready...#

Already have MySQL installed from a previous DMG or GUI installer? Follow the instructions at https://coderwall.com/p/os6woq/uninstall-all-those-broken-versions-of-mysql-and-re-install-it-with-brew-on-mac-mavericks to blast it away, backing up any data first.

Already have Apache running in OSX? You can turn it off since we'll be setting up Nginx below, or leave it running on port 80 – it won't affect what we're doing here.

@jasonfroderman
jasonfroderman / MODULE.module.php
Created March 12, 2017 16:25 — forked from pbuyle/MODULE.module.php
Integration of Pantheon with the Cache Expiration (expire) module on Drupal
<?php
/**
* Implements hook_init().
*/
function MODULE_init() {
// Add Surrogate-Key headers based on path segments.
// E.g. if the current path is product/some-category/product-name
// we should end up with the following Surrogate-Keys:
// product product/some-category product/some-category/product-name