mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 14:28:56 +00:00
New caching plugin, won't cache anything
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9526 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
1a9202b164
commit
ffbc25e17a
2 changed files with 164 additions and 0 deletions
|
@ -89,6 +89,7 @@
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>[Feature] Backported 3.2 cpatcha plugins.</li>
|
<li>[Feature] Backported 3.2 cpatcha plugins.</li>
|
||||||
|
<li>[Feature] Introduced new ACM plugins: null</li>
|
||||||
</ul>
|
</ul>
|
||||||
<a name="v304"></a><h3>1.ii. Changes since 3.0.4</h3>
|
<a name="v304"></a><h3>1.ii. Changes since 3.0.4</h3>
|
||||||
|
|
||||||
|
|
163
phpBB/includes/acm/acm_null.php
Normal file
163
phpBB/includes/acm/acm_null.php
Normal file
|
@ -0,0 +1,163 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @package acm
|
||||||
|
* @version $Id$
|
||||||
|
* @copyright (c) 2005, 2009 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
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 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()
|
||||||
|
{
|
||||||
|
// This cache always has a tidy room.
|
||||||
|
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 = 0)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
Loading…
Add table
Reference in a new issue