I hereby claim:
- I am sdunham on github.
- I am sdunham (https://keybase.io/sdunham) on keybase.
- I have a public key ASBolg0UHvTqSITG-iQh3OXFgkJvxfcfOX3lOth-aYOC5go
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
CONFIG.STRIP_HEADER=mc-header | |
CONFIG.STRIP_FOOTER=mc-footer |
$foo = TimberHelper::transient('foo_transient', | |
function(){return someExpensiveCodeOrQuery();}, | |
2*HOUR_IN_SECONDS | |
); |
// Get any existing copy of our transient data, if one exists | |
if ( false === ( $foo = get_transient( 'foo_transient' ) ) ) { | |
// Nothing found, or transient expired. Regenerate it! | |
$foo = someExpensiveCodeOrQuery(); | |
set_transient( 'foo_transient', $foo, 2*HOUR_IN_SECONDS ); | |
} | |
// Use $foo somehow |
require_once 'Zend/Uri/Http.php'; | |
namespace Location\Web; | |
interface Factory | |
{ | |
static function _factory(); | |
} | |
abstract class URI extends BaseURI implements Factory |