aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acm/acm_null.php
blob: 79f2b59c0f657c422059a7a46940363611c7a6bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<?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;
	}
}