Index: /trunk/xcache.c
===================================================================
--- /trunk/xcache.c	(revision 454)
+++ /trunk/xcache.c	(revision 455)
@@ -994,10 +994,4 @@
 
 	if (!XG(initial_compile_file_called)) {
-		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;
 	}
@@ -1314,4 +1308,6 @@
 		if (!php.op_array) {
 			cache->compiling = 0;
+			/* it's not cachable, but don't scare the users with high misses */
+			cache->misses --;
 			xc_sandbox_free(&sandbox, XC_InstallNoBinding TSRMLS_CC);
 			return op_array;
