Community Forums › Forums › Archived Forums › General Discussion › El buscador satura el admin-ajax
Tagged: Admin-ajax
- This topic has 12 replies, 5 voices, and was last updated 4 years, 1 month ago by [email protected].
-
AuthorPosts
-
February 18, 2020 at 8:51 pm #496815AthemisParticipant
Hola,
Utilizo la plantilla Metro Pro, y hace unas semanas le he puesto el buscador nativo de WordPress. Desde entonces, he excedido los recursos de la web y Google me ha penalizado por ello.
Me acabo de dar cuenta de que era el buscador el que saturaba el admin-ajax. ¿Hay algún fragmento de código para evitar que esto ocurra?
Gracias de antemano.
Un saludoFebruary 19, 2020 at 7:47 am #496823Victor FontModeratorI don't now what you mean when you say your site has exceeded the resources of the web. There is no such thing. If anything, you host has imposed limits on your site and your site has exceeded your host's limits. If your host will not increase your resource limits, move your site to a different host.
Ahora no entiendo a qué te refieres cuando dices que tu sitio ha excedido los recursos de la web. No existe tal cosa. En todo caso, su host ha impuesto límites en su sitio y su sitio ha excedido los límites de su host. Si su host no aumentará sus límites de recursos, mueva su sitio a un host diferente.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?February 19, 2020 at 10:15 am #496829AthemisParticipantQuizás no me expliqué bien. Quise decir que mi sitio ha excedido los límites de mi host, y eso me volvería a suceder aunque lo trasladara a otro host, ya que el problema lo tengo en el buscador que satura el admin-ajax.
Cada vez que un usuario hace una búsqueda, el buscador realiza un exceso de peticiones. Por lo que no sé si alguien conoce alguna forma de evitarlo. Quizás se solucionaría poniendo un delay de unos segundos y que se resetee cada vez. ¿Pero cómo podría hacer esto último? Si alguien tiene una solución mejor o sabe la respuesta, lo agradecería mucho.February 19, 2020 at 12:50 pm #496831Victor FontModeratorLo siento. Eso no es algo en lo que pueda ayudarlo. Es un problema de host que no tiene nada que ver con Genesis Framework o su tema StudioPress. ¡Buena suerte!
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?March 17, 2020 at 8:20 am #497379[email protected]MemberI have same problem.
I'm testing Navigation Pro.
I have a site with an Themeforest template. I have no problem with CPU usage.I change my template, I set the Navigation Pro theme and after a while the CPU usage increase over the limit.
Ok I use a shared server, but with Avada Template CPU usage is ok (under under 4000) with Navigation Pro is over over 4000s.
Assistance Hosting suggest me to limit heartbeat (I do) and optimize database (I do). But But I still have this problem about CPU usage.
Hosting said me the most executed script is this
http://ideedituttounpo.it/wp-admin/admin-ajax.phpAssistance said that "the script is executed from your website IP, which means that some feature of your website application executes it:
POST /wp-admin/admin-ajax.php?action=as_async_request_queue_runner&nonce=2f8dac95de HTTP/1.0" 504 247 "https://www.ideedituttounpo.it/wp-admin/admin-ajax.php?action=as_async_request_queue_runner&nonce=2f8dac95de" "WordPress/5.3.2; https://www.ideedituttounpo.it"Assistance say "the "action" string can possibly point out the feature that spawns those processes". So I'd like to know what can I have to correct bacause I can't find it.
Today I restored my old Avada version, in desperation, but Id like to resolve the problem because I paid the template and I like navigation Pro
March 17, 2020 at 4:15 pm #497390[email protected]MemberHi Athemis, on facebook group, Victor Font solved my problem. I paste here the solution:
The as_async_request_queue_runner action is a WooCommerce action. There is only one place in Navigation Pro where any AJAX action is invoked. It is in the notice-update.js file that is part of the theme's WooCommerce support functions. I suggest commenting out the loading of the WooCommerce support files. The files are loaded in functions.php at lines 47, 50, and 53 respectively.
// Adds WooCommerce support.
require_once get_stylesheet_directory() . '/lib/woocommerce/woocommerce-setup.php';
// Includes the Customizer CSS for the WooCommerce plugin.
require_once get_stylesheet_directory() . '/lib/woocommerce/woocommerce-output.php';
// Includes notice to install Genesis Connect for WooCommerce.
require_once get_stylesheet_directory() . '/lib/woocommerce/woocommerce-notice.php'Thank you to Victor Font.
March 18, 2020 at 5:46 am #497398NickParticipantIf your sites are running WooCommerce, it sounds like the WooCommerce Action Scheduler is running tasks in the background (because of
as_async_request_queue_runner
in the admin-ajax URLs).Navigation Pro and other StudioPress themes do not use the WooCommerce Action Scheduler directly, but actions can be scheduled when you switch to a new theme (which triggers thumbnail regeneration if WooCommerce is active) or update WooCommerce. CPU usage should drop once the actions are complete.
You can try to find out what actions are running or complete by visiting WooCommerce -> Status -> Scheduled Actions.
It would also be worth contacting WooCommerce support for help investigating continued high CPU usage due to WooCommerce actions: https://woocommerce.com/contact-us/
March 19, 2020 at 5:57 am #497413[email protected]MemberAfter the solution suggested by Victor, problem came back.
I don't have Woocommerce so I can't visiting Woocommerce status.I think it is inappropriate to contact support. What could I ask them? I don' have and i don't use Woocommerce.
If template called Woocommerce could be a Navigation Pro template.
Anyone has this problem or anyone use Navigation Pro with other hosting? (not Siteground)I'll try to contact StudioPress
March 19, 2020 at 6:54 am #497415[email protected]MemberI opened a ticket for StudioPress.
I will let you knowMarch 19, 2020 at 7:44 am #497416NickParticipantThank you for the extra information about not running WooCommerce.
Other plugins sometimes use the same “Action Scheduler” (https://actionscheduler.org/ ) feature that WooCommerce uses.
If you installed any plugins since switching to Navigation Pro, those could be triggering the requests and high CPU load.
You could work with your host to disable plugins one at a time to see which one is responsible for the high CPU load.
March 20, 2020 at 6:17 am #497426[email protected]MemberI found the problem.
I used plugin "Query Monitor" who show me what was the plugin responsible for the high CPU load.Now I deactivated this plugin, I wrote to the plugin support but now my site run and the CPU load is normal from yesterday
March 20, 2020 at 3:59 pm #497430AnitaKeymasterCan you share which plugin it was?
Love coffee, chocolate and my Bella!
March 21, 2020 at 4:20 am #497439[email protected]MemberHi Anita, yes, the plugin was WPform but plugin support told me will be all ok with next update.
But they don't wrote when will release next update
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.