Features
1. Autoloader — @see go_autoload()
- To disable this feature, in settings.php, define GO_DISABLE_AUTOLOAD constant.
- Run faster with APC extension enabled.
2. go_cache()
Without go_cache()
function your_data_provider($reset = FALSE) {
$cache_id = '…';
$bin = 'bin';
$expire = strtotime('+ 15 minutes');
if (!$reset && $cache = cache_get($cache_id, $bin)) {
return $cache->data;
}
$data = your_logic();
cache_set($data, $cache_id, $bin, $expire);
return $data;
}
With go_cache(), your logic becomes cleaner:
function your_data_provider() {
return your_logic();
}
$data = go_cache(array('cache_id' => '…'), 'your_data_provider');
3. Useful drush commands:
# Download libraries
drush godl ckeditor
drush godl jquery.cycle
drush godl jquery.cycle.2
drush godl colorbox
drush godl maxmind.geolite.country
drush godl maxmind.geolite.country ipv6
drush godl maxmind.geolite.city
drush godl maxmind.geolite.city ipv6
drush godev
Shortcut for quick dev enviroments.
drush golive --cache=1 --js=1 --update=1
This is wrapper command for useful auto configuration for live site:
- Enable page/block caching
- Enable js/css aggregation