Browse Source

fixed #94, gc was disabled when xcache.cacher set to off

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@416 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 15 years ago
parent
commit
efbacfb22c
  1. 7
      xcache.c

7
xcache.c

@ -1680,13 +1680,12 @@ static void xc_request_init(TSRMLS_D) /* {{{ */
}
}
if (XG(cacher)) {
#if PHP_API_VERSION <= 20041225
XG(request_time) = time(NULL);
XG(request_time) = time(NULL);
#else
XG(request_time) = sapi_get_request_time(TSRMLS_C);
XG(request_time) = sapi_get_request_time(TSRMLS_C);
#endif
}
#ifdef HAVE_XCACHE_COVERAGER
xc_coverager_request_init(TSRMLS_C);
#endif

Loading…
Cancel
Save