aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-16 14:57:28 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-16 14:57:28 +0000
commit8844ef89073ed5dd78d17f6b82eff7fc83373b4e (patch)
tree83e3a18fef2a1049da4006cc33b85337e85ffd00 /engine
parentebe86f345e11852251fd48956e1704297950416f (diff)
downloadelgg-8844ef89073ed5dd78d17f6b82eff7fc83373b4e.tar.gz
elgg-8844ef89073ed5dd78d17f6b82eff7fc83373b4e.tar.bz2
Removed select_default_memcache as this was not used.
git-svn-id: https://code.elgg.org/elgg/trunk@2763 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/cache.php21
1 files changed, 0 insertions, 21 deletions
diff --git a/engine/lib/cache.php b/engine/lib/cache.php
index 5429bce5e..191c7c004 100644
--- a/engine/lib/cache.php
+++ b/engine/lib/cache.php
@@ -434,25 +434,4 @@
}
}
-
- /**
- * A simple function that selects the default memory caching engine.
- *
- * This function provides a central way to get a cache for storing local variables.
- *
- * TODO: Do this better & allow plugin overrides.
- *
- * @param string $namespace Define which memory space to use.
- */
- function select_default_memcache($namespace = "default")
- {
- global $CONFIG;
- // TODO : hook out to the world ? (can't if using as object cache)
-
- // Try and see if memcache is present & enabled
- if (is_memcache_available())
- return new ElggMemcache($namespace);
-
- return new ElggStaticVariableCache($namespace);
- }
?> \ No newline at end of file