Skip to content

Instantly share code, notes, and snippets.

View Pross's full-sized avatar
💬

Simon Prosser Pross

💬
View GitHub Profile
@Pross
Pross / resource-loop.php
Last active December 21, 2017 15:05 — forked from richsalvucci/resource-loop.php
Archive loop
<?php
$resource = pods('resource', get_the_id());
$short_description = $resource->display('short_description');
$item_reference_link = $resource->display('item_reference_link');
$button_text = $resource->display('button_text');
$button_icon = $resource->display('button_icon');
$preview_image = $resource->display('preview_image');
var_dump($button_icon);
upstream php {
server 127.0.0.1:9001;
}
upstream hhvm {
server 127.0.0.1:9002;
}
fastcgi_cache_path /var/cache/nginx levels=1:2 keys_zone=microcache_fpm:100m max_size=1000m;
add_header rt-Fastcgi-Cache $upstream_cache_status;