From 0f8c5fd2bf9490373e800b36211cb5334346d76f Mon Sep 17 00:00:00 2001 From: Xuefer Date: Thu, 12 Jul 2007 03:28:26 +0000 Subject: [PATCH] merged [453] from b1.2: for non cachable files, they just wont be cached. we shound't scare the users with high misses git-svn-id: svn://svn.lighttpd.net/xcache/trunk@454 c26eb9a1-5813-0410-bd6c-c2e55f420ca7 --- xcache.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xcache.c b/xcache.c index 97f4d28..9171b8a 100644 --- a/xcache.c +++ b/xcache.c @@ -996,6 +996,8 @@ static zend_op_array *xc_compile_php(xc_entry_data_php_t *php, zend_file_handle xc_sandbox_free(&sandbox, XC_InstallNoBinding TSRMLS_CC); ENTER_LOCK(cache) { cache->compiling = 0; + /* it's not cachable, but don't scare the users with high misses */ + cache->misses --; } LEAVE_LOCK(cache); return op_array; }