You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by ch...@apache.org on 2008/06/04 21:53:23 UTC

svn commit: r663359 - /incubator/shindig/trunk/php/index.php

Author: chabotc
Date: Wed Jun  4 12:53:23 2008
New Revision: 663359

URL: http://svn.apache.org/viewvc?rev=663359&view=rev
Log:
Added memcache module check if that backend was selected

Modified:
    incubator/shindig/trunk/php/index.php

Modified: incubator/shindig/trunk/php/index.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/index.php?rev=663359&r1=663358&r2=663359&view=diff
==============================================================================
--- incubator/shindig/trunk/php/index.php (original)
+++ incubator/shindig/trunk/php/index.php Wed Jun  4 12:53:23 2008
@@ -36,11 +36,16 @@
 
 include_once ('config.php');
 
-// basic sanity check if we have all required modules
+// Basic sanity check if we have all required modules
 $modules = array('json', 'SimpleXML', 'libxml', 'curl');
+// if plain text tokens are disallowed we require mcrypt
 if (!Config::get('allow_plaintext_token')) {
 	$modules[] = 'mcrypt';
 }
+// if you selected the memcache caching backend, you need the memcache extention too :)
+if (Config::get('data_cache') == 'CacheMemcache') {
+	$modules[] = 'memcache';
+}
 foreach ($modules as $module) {
 	if (!extension_loaded($module)) {
 		die("Shindig requires the {$module} extention, see <a href='http://www.php.net/{$module}'>http://www.php.net/{$module}</a> for more info");