Skip to content

Instantly share code, notes, and snippets.

View AlexBa's full-sized avatar

Alexander Barton AlexBa

View GitHub Profile
@cristianoc72
cristianoc72 / propel.yaml
Last active March 21, 2022 20:32
Propel sample configuration file
## Sample Propel configuration file ##
propel:
## General settings ##
general:
# The name of your project.
# This affects names of generated files, etc.
project:
version: 2.0.0-dev
@hans2103
hans2103 / rediscacheinvalidation.php
Last active August 1, 2018 04:20
Script to invalidate Redis cache in Wordpress after adding new blog posts and such. To be used with https://gist.github.com/hans2103/5657621 where you already defined the connection information to Redis.
<?php
/*
Redis Cache invalidation
Author: Flynsarmy and modified by Hans2103
This is a Redis Cache invalidation script for Wordpress.
http://www.flynsarmy.com/2013/03/how-to-drastically-speed-up-wordpress-with-redis/
defined the connection credentials in wp-config.php
Add this piece of code to your theme functions.php or...
when using Roots theme add this as a file to the lib directory and call it from functions.php