Skip to content

Instantly share code, notes, and snippets.

@gandbox
gandbox / gist:3639954
Created September 5, 2012 16:59
Cache bootstrap extension
//
@gandbox
gandbox / log PHP class
Created September 5, 2012 13:25
PHP class for logging the viewcache activity
<?php
class log
{
static public function logviewcache( $nodeList )
{
$uri = $GLOBALS['_SERVER']['REQUEST_URI'];
eZLog::write('node_id count : '. count( $nodeList ). ' / node_id list : ' . implode(', ', $nodeList ) . ' / URI : '.$uri, 'cachethresold.log');
@gandbox
gandbox / ezcacheblockexpiry.php
Created September 5, 2012 09:48
bin/php/ script for template-block files expiry
#!/usr/bin/env php
<?php
require 'autoload.php';
if ( !function_exists( 'readline' ) )
{
function readline( $prompt = '' )
{