|
indvdum@0
|
1 |
<?php
|
|
indvdum@0
|
2 |
/**
|
|
indvdum@0
|
3 |
*
|
|
indvdum@0
|
4 |
* @package acm
|
|
indvdum@0
|
5 |
* @version $Id$
|
|
indvdum@0
|
6 |
* @copyright (c) 2005, 2009 phpBB Group
|
|
indvdum@0
|
7 |
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
|
indvdum@0
|
8 |
*
|
|
indvdum@0
|
9 |
*/
|
|
indvdum@0
|
10 |
|
|
indvdum@0
|
11 |
/**
|
|
indvdum@0
|
12 |
* @ignore
|
|
indvdum@0
|
13 |
*/
|
|
indvdum@0
|
14 |
if (!defined('IN_PHPBB'))
|
|
indvdum@0
|
15 |
{
|
|
indvdum@0
|
16 |
exit;
|
|
indvdum@0
|
17 |
}
|
|
indvdum@0
|
18 |
|
|
indvdum@0
|
19 |
/**
|
|
indvdum@0
|
20 |
* ACM Null Caching
|
|
indvdum@0
|
21 |
* @package acm
|
|
indvdum@0
|
22 |
*/
|
|
indvdum@0
|
23 |
class acm
|
|
indvdum@0
|
24 |
{
|
|
indvdum@0
|
25 |
/**
|
|
indvdum@0
|
26 |
* Set cache path
|
|
indvdum@0
|
27 |
*/
|
|
indvdum@0
|
28 |
function acm()
|
|
indvdum@0
|
29 |
{
|
|
indvdum@0
|
30 |
}
|
|
indvdum@0
|
31 |
|
|
indvdum@0
|
32 |
/**
|
|
indvdum@0
|
33 |
* Load global cache
|
|
indvdum@0
|
34 |
*/
|
|
indvdum@0
|
35 |
function load()
|
|
indvdum@0
|
36 |
{
|
|
indvdum@0
|
37 |
return true;
|
|
indvdum@0
|
38 |
}
|
|
indvdum@0
|
39 |
|
|
indvdum@0
|
40 |
/**
|
|
indvdum@0
|
41 |
* Unload cache object
|
|
indvdum@0
|
42 |
*/
|
|
indvdum@0
|
43 |
function unload()
|
|
indvdum@0
|
44 |
{
|
|
indvdum@0
|
45 |
}
|
|
indvdum@0
|
46 |
|
|
indvdum@0
|
47 |
/**
|
|
indvdum@0
|
48 |
* Save modified objects
|
|
indvdum@0
|
49 |
*/
|
|
indvdum@0
|
50 |
function save()
|
|
indvdum@0
|
51 |
{
|
|
indvdum@0
|
52 |
}
|
|
indvdum@0
|
53 |
|
|
indvdum@0
|
54 |
/**
|
|
indvdum@0
|
55 |
* Tidy cache
|
|
indvdum@0
|
56 |
*/
|
|
indvdum@0
|
57 |
function tidy()
|
|
indvdum@0
|
58 |
{
|
|
indvdum@0
|
59 |
// This cache always has a tidy room.
|
|
indvdum@0
|
60 |
set_config('cache_last_gc', time(), true);
|
|
indvdum@0
|
61 |
}
|
|
indvdum@0
|
62 |
|
|
indvdum@0
|
63 |
/**
|
|
indvdum@0
|
64 |
* Get saved cache object
|
|
indvdum@0
|
65 |
*/
|
|
indvdum@0
|
66 |
function get($var_name)
|
|
indvdum@0
|
67 |
{
|
|
indvdum@0
|
68 |
return false;
|
|
indvdum@0
|
69 |
}
|
|
indvdum@0
|
70 |
|
|
indvdum@0
|
71 |
/**
|
|
indvdum@0
|
72 |
* Put data into cache
|
|
indvdum@0
|
73 |
*/
|
|
indvdum@0
|
74 |
function put($var_name, $var, $ttl = 0)
|
|
indvdum@0
|
75 |
{
|
|
indvdum@0
|
76 |
}
|
|
indvdum@0
|
77 |
|
|
indvdum@0
|
78 |
/**
|
|
indvdum@0
|
79 |
* Purge cache data
|
|
indvdum@0
|
80 |
*/
|
|
indvdum@0
|
81 |
function purge()
|
|
indvdum@0
|
82 |
{
|
|
indvdum@0
|
83 |
}
|
|
indvdum@0
|
84 |
|
|
indvdum@0
|
85 |
/**
|
|
indvdum@0
|
86 |
* Destroy cache data
|
|
indvdum@0
|
87 |
*/
|
|
indvdum@0
|
88 |
function destroy($var_name, $table = '')
|
|
indvdum@0
|
89 |
{
|
|
indvdum@0
|
90 |
}
|
|
indvdum@0
|
91 |
|
|
indvdum@0
|
92 |
/**
|
|
indvdum@0
|
93 |
* Check if a given cache entry exist
|
|
indvdum@0
|
94 |
*/
|
|
indvdum@0
|
95 |
function _exists($var_name)
|
|
indvdum@0
|
96 |
{
|
|
indvdum@0
|
97 |
return false;
|
|
indvdum@0
|
98 |
}
|
|
indvdum@0
|
99 |
|
|
indvdum@0
|
100 |
/**
|
|
indvdum@0
|
101 |
* Load cached sql query
|
|
indvdum@0
|
102 |
*/
|
|
indvdum@0
|
103 |
function sql_load($query)
|
|
indvdum@0
|
104 |
{
|
|
indvdum@0
|
105 |
return false;
|
|
indvdum@0
|
106 |
}
|
|
indvdum@0
|
107 |
|
|
indvdum@0
|
108 |
/**
|
|
indvdum@0
|
109 |
* Save sql query
|
|
indvdum@0
|
110 |
*/
|
|
indvdum@0
|
111 |
function sql_save($query, &$query_result, $ttl)
|
|
indvdum@0
|
112 |
{
|
|
indvdum@0
|
113 |
}
|
|
indvdum@0
|
114 |
|
|
indvdum@0
|
115 |
/**
|
|
indvdum@0
|
116 |
* Ceck if a given sql query exist in cache
|
|
indvdum@0
|
117 |
*/
|
|
indvdum@0
|
118 |
function sql_exists($query_id)
|
|
indvdum@0
|
119 |
{
|
|
indvdum@0
|
120 |
return false;
|
|
indvdum@0
|
121 |
}
|
|
indvdum@0
|
122 |
|
|
indvdum@0
|
123 |
/**
|
|
indvdum@0
|
124 |
* Fetch row from cache (database)
|
|
indvdum@0
|
125 |
*/
|
|
indvdum@0
|
126 |
function sql_fetchrow($query_id)
|
|
indvdum@0
|
127 |
{
|
|
indvdum@0
|
128 |
return false;
|
|
indvdum@0
|
129 |
}
|
|
indvdum@0
|
130 |
|
|
indvdum@0
|
131 |
/**
|
|
indvdum@0
|
132 |
* Fetch a field from the current row of a cached database result (database)
|
|
indvdum@0
|
133 |
*/
|
|
indvdum@0
|
134 |
function sql_fetchfield($query_id, $field)
|
|
indvdum@0
|
135 |
{
|
|
indvdum@0
|
136 |
return false;
|
|
indvdum@0
|
137 |
}
|
|
indvdum@0
|
138 |
|
|
indvdum@0
|
139 |
/**
|
|
indvdum@0
|
140 |
* Seek a specific row in an a cached database result (database)
|
|
indvdum@0
|
141 |
*/
|
|
indvdum@0
|
142 |
function sql_rowseek($rownum, $query_id)
|
|
indvdum@0
|
143 |
{
|
|
indvdum@0
|
144 |
return false;
|
|
indvdum@0
|
145 |
}
|
|
indvdum@0
|
146 |
|
|
indvdum@0
|
147 |
/**
|
|
indvdum@0
|
148 |
* Free memory used for a cached database result (database)
|
|
indvdum@0
|
149 |
*/
|
|
indvdum@0
|
150 |
function sql_freeresult($query_id)
|
|
indvdum@0
|
151 |
{
|
|
indvdum@0
|
152 |
return false;
|
|
indvdum@0
|
153 |
}
|
|
indvdum@0
|
154 |
}
|
|
indvdum@0
|
155 |
|
|
indvdum@0
|
156 |
?> |