| @@ -13,9 +13,8 @@ | ||
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | use CartflowsAdmin\AdminCore\Ajax\AjaxBase; |
| 16 | 16 | use CartflowsAdmin\AdminCore\Inc\LogStatus; |
| 17 | -use CartflowsAdmin\AdminCore\Inc\AdminHelper; | |
| 18 | 17 | |
| 19 | 18 | /** |
| 20 | 19 | * Class Steps. |
| 21 | 20 | */ |
| @@ -84,9 +83,11 @@ | ||
| 84 | 83 | |
| 85 | 84 | check_ajax_referer( 'cartflows_sync_kb_docs', 'security' ); |
| 86 | 85 | |
| 87 | 86 | $docs_json = json_decode( wp_remote_retrieve_body( wp_remote_get( 'https://cartflows.com//wp-json/powerful-docs/v1/get-docs' ) ) ); |
| 88 | - AdminHelper::update_admin_settings_option( 'cartflows_docs_data', $docs_json ); | |
| 87 | + | |
| 88 | + // Never autoload — this payload runs to hundreds of KB and only the Knowledge Base screen reads it. | |
| 89 | + update_option( 'cartflows_docs_data', $docs_json, false ); | |
| 89 | 90 | |
| 90 | 91 | $response_data = array( |
| 91 | 92 | 'message' => __( 'Sync Success.', 'cartflows' ), |
| 92 | 93 | 'status' => true, |