Index: trunk/Nebulous-Server/lib/Nebulous/Server.pm
===================================================================
--- trunk/Nebulous-Server/lib/Nebulous/Server.pm	(revision 24349)
+++ trunk/Nebulous-Server/lib/Nebulous/Server.pm	(revision 24350)
@@ -64,4 +64,7 @@
     $self->config($config);
     $self->cache(Cache::Memcached::Managed->new($config->memcached));
+    # cause a db session to be started
+    $self->_db_for_index(0);
+
     $log->debug( "leaving" );
 
@@ -312,4 +315,8 @@
         last;
     }
+
+    # add new key to the cache
+    $self->cache->set(id => $key->path, value => 1);
+    $log->debug( "key added to cache" );
 
     $log->debug("leaving");
