if (!tmp_obj) {
apr_hash_set(sconf->cacheht, obj->key, strlen(obj->key), obj);
sconf->object_cnt++;
+ sconf->cache_size += len;
}
if (sconf->lock) {
apr_thread_mutex_unlock(sconf->lock);
mem_cache_object_t *mobj = (mem_cache_object_t *) obj->vobj;
apr_hash_set(sconf->cacheht, obj->key, strlen(obj->key), NULL);
sconf->object_cnt--;
+ sconf->cache_size -= mobj->m_len;
if (mobj->refcount) {
mobj->cleanup = 1;
}
mem_cache_object_t *mobj = (mem_cache_object_t *) obj->vobj;
apr_hash_set(sconf->cacheht, key, APR_HASH_KEY_STRING, NULL);
sconf->object_cnt--;
+ sconf->cache_size -= mobj->m_len;
if (mobj->refcount) {
mobj->cleanup = 1;
}