IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 5, 2009, 5:30:35 PM (17 years ago)
Author:
jhoblitt
Message:

always start an initial db connection and cache key names as they are created

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous-Server/lib/Nebulous/Server.pm

    r24349 r24350  
    6464    $self->config($config);
    6565    $self->cache(Cache::Memcached::Managed->new($config->memcached));
     66    # cause a db session to be started
     67    $self->_db_for_index(0);
     68
    6669    $log->debug( "leaving" );
    6770
     
    312315        last;
    313316    }
     317
     318    # add new key to the cache
     319    $self->cache->set(id => $key->path, value => 1);
     320    $log->debug( "key added to cache" );
    314321
    315322    $log->debug("leaving");
Note: See TracChangeset for help on using the changeset viewer.