From f923f723b8b0c4bc64ec0299c6812dc419e7de6f Mon Sep 17 00:00:00 2001 From: harshadyeola Date: Mon, 11 May 2015 12:12:23 +0530 Subject: [PATCH] create wp site if cache type is provided --- ee/cli/plugins/site_functions.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ee/cli/plugins/site_functions.py b/ee/cli/plugins/site_functions.py index a23675b4..1e1ef0b1 100644 --- a/ee/cli/plugins/site_functions.py +++ b/ee/cli/plugins/site_functions.py @@ -827,8 +827,12 @@ def detSitePar(opts): sitetype = typelist[0] cachetype = 'basic' else: - sitetype = typelist[0] - cachetype = cachelist[0] + if (cachelist[0] in ['wpfc', 'w3tc', 'wpsc'] + and typelist[0] in ['html', 'php', 'mysql']): + sitetype = 'wp' + else: + sitetype = typelist[0] + cachetype = cachelist[0] return (sitetype, cachetype)