From 8844ef89073ed5dd78d17f6b82eff7fc83373b4e Mon Sep 17 00:00:00 2001 From: marcus Date: Mon, 16 Feb 2009 14:57:28 +0000 Subject: Removed select_default_memcache as this was not used. git-svn-id: https://code.elgg.org/elgg/trunk@2763 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/cache.php | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'engine/lib/cache.php') 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 -- cgit v1.2.3