Alto consumo de CPU por llamadas masivas a admin-ajax.php

Posted in: Newspaper
Post count: 52

Hola equipo de soporte de tagDiv,

Estoy experimentando un consumo elevado de CPU y de recursos de base de datos en mi servidor (WordPress con tema Newspaper, versión 12.7.3), y logré identificar la causa mediante análisis de logs de acceso.

Hallazgo principal:
Detecté 6,202 peticiones a admin-ajax.php con el siguiente patrón exacto de query string:
admin-ajax.php?td_theme_name=Newspaper&v=12.7.3

Estas peticiones no incluyen el parámetro action=, a diferencia de otras llamadas ajax estándar de WordPress. Solo encontré 2 peticiones con action=rest-nonce en el mismo período, en contraste con las 6,202 mencionadas.
Preguntas específicas:

¿Qué función o mecanismo del tema genera esta llamada específica (td_theme_name + v sin action)?
¿Es un mecanismo de verificación de versión/licencia, telemetría, o alguna otra función?
¿Existe una opción en el panel de administración del tema para desactivar o reducir la frecuencia de esta llamada?
Si no se puede desactivar, ¿es seguro cachear esta petición a nivel de servidor (LiteSpeed Cache) sin afectar la funcionalidad del tema?

Contexto técnico adicional:

Servidor: AlmaLinux 8.10.0, cPanel/WHM, LiteSpeed (lsphp)
Plugin de caché actualmente evaluando: LiteSpeed Cache
El volumen de estas peticiones supera al de cualquier sección editorial del sitio (que rondan 150-170 peticiones cada una en el mismo período de análisis)
Gran parte del tráfico total al sitio proviene de rastreadores legítimos verificados (Googlebot, confirmado por reverse DNS), lo que sugiere que estas llamadas ajax se disparan también durante el rastreo/renderizado de páginas, no solo con usuarios humanos

Quedo atento a su respuesta. Gracias de antemano.
Saludos,
Ronny

Post count: 20685

Hi,

There are a few options from the theme that make such requests. Like the live search, the block pagination, lazyloading the footer, the ajax view count. If all of these are used on the website, and the website gets a lot of traffic, then the requests can add up and potentially slow down the website.

Could you provide a link to the website so I can check it? I’ll check what options you are using and what is making ajax calls. If you can’t provide a link in the forum, then you can send an email at contact@tagdiv.com and we can continue by email.

Thank you!

Post count: 52

Muchas gracias por responder.
Claro que sí, el sitio es https://laguajirahoy.com.

Post count: 20685

Thank you.

If you want to reduce the admin ajax requests, my suggestion is to change the pagination type for this block in the post page -> https://prnt.sc/Wvqv_ogWmLeq The infinite load pagination used on that block makes 2 requests each time a post page loads, I suggest using next/prev pagination or Load more button. This way the block won’t automatically make requests on page load and scroll, and visitors can load more posts if they want.

The live search also makes requests while typing in the search box -> https://prnt.sc/6wn31CiDh_WA This can be disabled -> https://prnt.sc/A5bIijIb-1k7

But I suggest starting with the changing the pagination of that block in the post page, then check if the situation improves. If not, disable the live search as well.

Let me know.

Thank you!

Post count: 52

Thank you so much.

Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.