SMARTY_COMPILE_DIR should be SMARTY_CACHE_DIR