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