comparison includes/cache-install.inc @ 1:c1f4ac30525a 6.0

Drupal 6.0
author Franck Deroche <webmaster@defr.org>
date Tue, 23 Dec 2008 14:28:28 +0100
parents
children
comparison
equal deleted inserted replaced
0:5a113a1c4740 1:c1f4ac30525a
1 <?php
2 // $Id: cache-install.inc,v 1.2 2007/08/07 08:39:35 goba Exp $
3
4 /**
5 * A stub cache implementation to be used during the installation
6 * process when database access is not yet available. Because Drupal's
7 * caching system never requires that cached data be present, these
8 * stub functions can short-circuit the process and sidestep the
9 * need for any persistent storage. Obviously, using this cache
10 * implementation during normal operations would have a negative impact
11 * on performance.
12 */
13
14 function cache_get($key, $table = 'cache') {
15 return FALSE;
16 }
17
18 function cache_set($cid, $data, $table = 'cache', $expire = CACHE_PERMANENT, $headers = NULL) {
19 return;
20 }
21
22 function cache_clear_all($cid = NULL, $table = NULL, $wildcard = FALSE) {
23 return;
24 }