Skip to content

Instantly share code, notes, and snippets.

@cs278
Created January 12, 2009 15:21
Show Gist options
  • Save cs278/46015 to your computer and use it in GitHub Desktop.
Save cs278/46015 to your computer and use it in GitHub Desktop.
<?php
/**
*
* @package acm
* @version $Id$
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
exit;
}
/**
* ACM Null Caching
* @package acm
*/
class acm
{
var $vars = array();
var $var_expires = array();
var $is_modified = false;
var $sql_rowset = array();
var $sql_row_pointer = array();
var $cache_dir = '';
/**
* Set cache path
*/
function acm()
{
}
/**
* Load global cache
*/
function load()
{
return true;
}
/**
* Unload cache object
*/
function unload()
{
}
/**
* Save modified objects
*/
function save()
{
}
/**
* Tidy cache
*/
function tidy()
{
set_config('cache_last_gc', time(), true);
}
/**
* Get saved cache object
*/
function get($var_name)
{
return false;
}
/**
* Put data into cache
*/
function put($var_name, $var, $ttl = 31536000)
{
}
/**
* Purge cache data
*/
function purge()
{
}
/**
* Destroy cache data
*/
function destroy($var_name, $table = '')
{
}
/**
* Check if a given cache entry exist
*/
function _exists($var_name)
{
return false;
}
/**
* Load cached sql query
*/
function sql_load($query)
{
return false;
}
/**
* Save sql query
*/
function sql_save($query, &$query_result, $ttl)
{
}
/**
* Ceck if a given sql query exist in cache
*/
function sql_exists($query_id)
{
return false;
}
/**
* Fetch row from cache (database)
*/
function sql_fetchrow($query_id)
{
return false;
}
/**
* Fetch a field from the current row of a cached database result (database)
*/
function sql_fetchfield($query_id, $field)
{
return false;
}
/**
* Seek a specific row in an a cached database result (database)
*/
function sql_rowseek($rownum, $query_id)
{
return false;
}
/**
* Free memory used for a cached database result (database)
*/
function sql_freeresult($query_id)
{
return false;
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment