Fix plugin data import
This commit is contained in:
@@ -590,25 +590,20 @@ def setupwordpress(self, data):
|
|||||||
setupwp_plugin(self, "nginx-helper",
|
setupwp_plugin(self, "nginx-helper",
|
||||||
"rt_wp_nginx_helper_options", plugin_data, data)
|
"rt_wp_nginx_helper_options", plugin_data, data)
|
||||||
elif data['wpredis']:
|
elif data['wpredis']:
|
||||||
plugin_data = "{\"log_level\":\"INFO\",\"log_filesize\":5,"
|
plugin_data = ('{"enable_purge":"1","cache_method":"enable_redis",'
|
||||||
"\"enable_purge\":1,\"enable_map\":0,"
|
'"purge_method":"get_request","enable_map":null,'
|
||||||
"\"enable_log\":0,\"enable_stamp\":0,"
|
'"enable_log":null,"log_level":"INFO","log_filesize":'
|
||||||
"\"purge_homepage_on_new\":1,"
|
'"5","enable_stamp":"1","purge_homepage_on_edit":"1",'
|
||||||
"\"purge_homepage_on_edit\":1,"
|
'"purge_homepage_on_del":"1","purge_archive_on_edit":'
|
||||||
"\"purge_homepage_on_del\":1,"
|
'"1","purge_archive_on_del":"1","purge_archive_on_'
|
||||||
"\"purge_archive_on_new\":1,"
|
'new_comment":null,"purge_archive_on_deleted_comment"'
|
||||||
"\"purge_archive_on_edit\":0,"
|
':null,"purge_page_on_mod":"1",'
|
||||||
"\"purge_archive_on_del\":0,"
|
'"purge_page_on_new_comment"'
|
||||||
"\"purge_archive_on_new_comment\":0,"
|
':"1","purge_page_on_deleted_comment":"1",'
|
||||||
"\"purge_archive_on_deleted_comment\":0,"
|
'"redis_hostname":"127.0.0.1",'
|
||||||
"\"purge_page_on_mod\":1,"
|
'"redis_port":"6379","redis_prefix":'
|
||||||
"\"purge_page_on_new_comment\":1,"
|
'"nginx-cache:","purge_url":"",'
|
||||||
"\"purge_page_on_deleted_comment\":1,"
|
'"redis_enabled_by_constant":0}')
|
||||||
"\"cache_method\":\"enable_redis\","
|
|
||||||
"\"purge_method\":\"get_request\","
|
|
||||||
"\"redis_hostname\":\"127.0.0.1\","
|
|
||||||
"\"redis_port\":\"6379\","
|
|
||||||
"\"redis_prefix\":\"nginx-cache:\"}"
|
|
||||||
setupwp_plugin(self, 'nginx-helper',
|
setupwp_plugin(self, 'nginx-helper',
|
||||||
'rt_wp_nginx_helper_options', plugin_data, data)
|
'rt_wp_nginx_helper_options', plugin_data, data)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user