Browse Source

update last_gc_deletes so it gc by interval

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@136 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
1.1
Xuefer 15 years ago
parent
commit
52eabe1d2b
  1. 1
      xcache.c

1
xcache.c

@ -356,6 +356,7 @@ static XC_CACHE_APPLY_FUNC(xc_gc_deletes_one) /* {{{ */
if (cache->deletes && XG(request_time) - cache->last_gc_deletes > xc_deletes_gc_interval) {
ENTER_LOCK(cache) {
if (cache->deletes && XG(request_time) - cache->last_gc_deletes > xc_deletes_gc_interval) {
cache->last_gc_deletes = XG(request_time);
xc_gc_delete_dmz(cache TSRMLS_CC);
}
} LEAVE_LOCK(cache);

Loading…
Cancel
Save