Commit c54b4ac9 authored by jlaval's avatar jlaval

Use phpredis instead of Predis

parent e061a715
......@@ -38,9 +38,10 @@ if ( $_REQUEST['module']=="fsearch" )
$content = null;
if ($site->user->is_valid() && $site->user->cotisant) {
require_once($topdir. "include/lib/predis/Predis.php");
$redis = new Predis_Client ();
$redis = new Redis ();
$redis->pconnect ('127.0.0.1');
$content = $redis->get (strtolower ($_REQUEST["pattern"]));
$redis->close ();
}
if ($content == null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment