Issue On Save
-
I am running into an issue when saving a very large menu. The menu in question has thousands of items, and per the client cannot be otherwise.
The issue I have run into is, it seems that the plugin does a cUrl request each iteration of the menu saving process, and eventually causes the page to timeout, as I am sure Cloudflare does not allow a high timeout.
Our tests have been done in a staging environment, as well as, a production environment, and have found that in the staging environment’s the menu eventually does save, though it takes around 4.5minutes to do so, due to these Curl requests the plugin is making.
With the plugin disabled, the menu saves in a matter of seconds
My question becomes, is there a way to bypass this Curl request that is causing this timeout, only for menu saves?
Here is the slow_log results
[29-Oct-2019 13:40:13] [pool MY_SITE] pid 25541script_filename = /srv/users/MY_SITE/apps/MY_SITE/public/wp-admin/nav-menus.php
[0x00007fc1732216f0] curl_exec() /srv/users/MY_SITE/apps/MY_SITE/public/wp-includes/Requests/Transport/cURL.php:162
[0x00007fc173221630] request() /srv/users/MY_SITE/apps/MY_SITE/public/wp-includes/class-requests.php:379
[0x00007fc173221530] request() /srv/users/MY_SITE/apps/MY_SITE/public/wp-includes/class-http.php:384
[0x00007fc1732213a0] request() /srv/users/MY_SITE/apps/MY_SITE/public/wp-includes/http.php:153
[0x00007fc173221310] wp_remote_request() /srv/users/MY_SITE/apps/MY_SITE/public/wp-content/plugins/cloudflare/src/WordPress/Wo
rdPressClientAPI.php:124
[0x00007fc173221230] sendRequest() /srv/users/MY_SITE/apps/MY_SITE/public/wp-content/plugins/cloudflare/src/WordPress/WordPres
sClientAPI.php:96
[0x00007fc1732211b0] callAPI() /srv/users/MY_SITE/apps/MY_SITE/public/wp-content/plugins/cloudflare/src/WordPress/WordPressCli
entAPI.php:55
[0x00007fc1732210f0] zonePurgeFiles() /srv/users/MY_SITE/apps/MY_SITE/public/wp-content/plugins/cloudflare/src/WordPress/Hooks
.php:160
[0x00007fc173220fd0] purgeCacheByRevelantURLs() /srv/users/MY_SITE/apps/MY_SITE/public/wp-includes/class-wp-hook.php:286
[0x00007fc173220ef0] apply_filters() /srv/users/MY_SITE/apps/MY_SITE/public/wp-includes/class-wp-hook.php:310
[0x00007fc173220e80] do_action() /srv/users/MY_SITE/apps/MY_SITE/public/wp-includes/plugin.php:465
[0x00007fc173220d70] do_action() /srv/users/MY_SITE/apps/MY_SITE/public/wp-includes/post.php:3912
[0x00007fc173220950] wp_insert_post() /srv/users/MY_SITE/apps/MY_SITE/public/wp-includes/post.php:4028
[0x00007fc173220880] wp_update_post() /srv/users/MY_SITE/apps/MY_SITE/public/wp-includes/nav-menu.php:568
[0x00007fc173220730] wp_update_nav_menu_item() /srv/users/MY_SITE/apps/MY_SITE/public/wp-admin/includes/nav-menu.php:1154
[0x00007fc1732205b0] wp_nav_menu_update_menu_items() /srv/users/MY_SITE/apps/MY_SITE/public/wp-admin/nav-menus
- The topic ‘Issue On Save’ is closed to new replies.