diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-05-14 13:43:38 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-05-14 13:43:38 +0000 |
commit | ac65ff9074223e7b09c1c609c9d82da45b28aa55 (patch) | |
tree | 21efe0a7607d7836de38a58f75ba85c073df9ead /includes/cache-install.inc | |
parent | ed768b53c0337cbd632d3ad208a60a48fcc50496 (diff) | |
download | brdo-ac65ff9074223e7b09c1c609c9d82da45b28aa55.tar.gz brdo-ac65ff9074223e7b09c1c609c9d82da45b28aa55.tar.bz2 |
- Patch #138706 by eaton, chx, webchick, yched et al: form api 3 ... yay. :)
Diffstat (limited to 'includes/cache-install.inc')
-rw-r--r-- | includes/cache-install.inc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/includes/cache-install.inc b/includes/cache-install.inc new file mode 100644 index 000000000..1eb3ed572 --- /dev/null +++ b/includes/cache-install.inc @@ -0,0 +1,23 @@ +<?php +// $Id$ +/** + * A stub cache implementation to be used during the installation + * process when database access is not yet available. Because Drupal's + * caching system never requires that cached data be present, these + * stub functions can short-circuit the process and sidestep the + * need for any persistent storage. Obviously, using this cache + * implementation during normal operations would have a negative impact + * on performance. + */ + +function cache_get($key, $table = 'cache') { + return FALSE; +} + +function cache_set($cid, $data, $table = 'cache', $expire = CACHE_PERMANENT, $headers = NULL) { + return; +} + +function cache_clear_all($cid = NULL, $table = NULL, $wildcard = FALSE) { + return; +} |