aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-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