From 708ccff3e1948d52179bd8f030211df340337343 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Wed, 3 Sep 2014 08:18:21 +0200 Subject: [PATCH] Crash workaround --- code/web/private_php/ams/autoload/helpers.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/web/private_php/ams/autoload/helpers.php b/code/web/private_php/ams/autoload/helpers.php index 272d758e1..0f7f8f659 100644 --- a/code/web/private_php/ams/autoload/helpers.php +++ b/code/web/private_php/ams/autoload/helpers.php @@ -36,6 +36,11 @@ class Helpers { $smarty -> caching = false; $smarty -> cache_lifetime = 5; + if (function_exists('apc_cache_info')) { + // production + $smarty->compile_check = false; + } + // needed by smarty. helpers :: create_folders (); global $FORCE_INGAME;