Branch: Tag:

2011-01-27

2011-01-27 11:57:50 by Martin Jonsson <marty@roxen.com>

Destroy protcache cachekeys when entries expire to reduce garbage.

Rev: server/base_server/configuration.pike:1.712

5:   // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.711 2011/01/20 17:39:41 mast Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.712 2011/01/27 11:57:50 marty Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>
252:    if (e[1]->co_handle) {    remove_call_out(e[1]->co_handle);    } +  if (CacheKey cachekey = e[1]->key) { +  destruct (cachekey);    }    } -  +  }       // NOTE: Avoid using this function if possible! O(n)    protected int low_expire_entry(string key_prefix)