Skip to content

Instantly share code, notes, and snippets.

<VirtualHost *:80>
DocumentRoot "/Library/WebServer/Documents/github/project_board/docroot"
ServerName project_board.dev
ServerAlias project_board.dev
<Directory "/Library/WebServer/Documents/github/project_board/docroot/">
Options All
AllowOverride All
</Directory>
</VirtualHost>
The system cannot publicly refresh the changes you just made, because of the following error conditions:
Because you have 23 domain names there is a very high risk that purging your site will put stress on your servers, it is strongly recommended to specify your domains to not exceed 6 domains. To prevent system failure, pending purges will not be processed!
Your site has Drupal page caching disabled, which is of extreme importance to every website that gets traffic. Once enabled your load balancer will be instructed to start serving pages from its cache to offload traffic from your web servers. The more traffic served from your load balancer, the faster your site will be!
The "expiration of cached pages"-setting of your website is disabled, while we strongly recommend to put it to 6 hours or longer in combination with the Acquia Purge module. The setting determines how long external caches (like our load balancers) are instructed to keep a cached copy of content. With your current setting your
@karens
karens / gist:35c4a372ba79fc2997b9
Created October 21, 2015 15:35
drupal httpclient example
$headers = [
'Accept' => 'application/json',
'Cache-Control' => 'no-cache',
'Authentication' => $auth_key,
];
try {
$client = \Drupal::httpClient();
$response = $client->get($url, array(
'headers' => $headers,
@karens
karens / article?_format=api_json&include=field_image
Last active November 29, 2016 22:09
Drupal JSON API example
{
"data": [
{
"type": "node--article",
"id": "3c38f39b-6601-41bd-a205-5e30c42c36fb",
"attributes": {
"nid": "1",
"uuid": "3c38f39b-6601-41bd-a205-5e30c42c36fb",
"vid": "1",
"langcode": "en",