This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Apply transient cache and return posts (like get_posts) | |
* | |
* @param array $args query params WP_Query | |
* @param string $transient_name | |
* @param string $transient_expiration Optional defaul 7200 | |
*/ | |
function cache_posts( $args , $transient_name , $transient_expiration = 7200 ){ | |
if ( false === ( $posts = get_transient( $transient_name ) ) ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: CloudFlare URL Replacement | |
Plugin URI: http://maurizio.mavida.com/wordpress-cloudflare-url-replacement/ | |
Description: Super simle replacer for CloudFlare user. | |
License: GPL | |
Version: 0.6 | |
Author: Maurizio Pelizzone | |
Author URI: http://maurizio.mavida.com |
NewerOlder