Skip to content

Instantly share code, notes, and snippets.

View rdohms's full-sized avatar
🔧
fixing all the things

Rafael Dohms rdohms

🔧
fixing all the things
View GitHub Profile
@rdohms
rdohms / wordpress.vcl
Created October 15, 2012 10:08 — forked from ThijsFeryn/wordpress.vcl
WordPress Varnish VCL
backend default {
.host = "127.0.0.1";
.port = "80";
}
acl purge {
"localhost";
"<external-ip>";
}
sub vcl_recv {
<?php
function validateProducts($products) {
// Check to make sure that our valid fields are in there
$requiredFields = array(
'price',
'name',
'description',
'type',
@rdohms
rdohms / RpcApi.php
Created February 23, 2012 21:18 — forked from chartjes/RpcApi.php
<?php
function validateProducts($storeData) {
// Check to make sure that our valid fields are in there
$requiredFields = array(
'price',
'name',
'description',
'type',