Navigation überspringen

[Warten auf das Feedback der Benutzer] A question about AJAX requests in Toolset

This support ticket is created vor 2 days, 3 hours. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Dieses Thema enthält 1 reply, hat 1 Stimme.

Zuletzt aktualisiert von Christopher Amirian vor 9 hours, 34 minutes.

Assistiert von: Christopher Amirian.

Author
Artikel
#2878394

Hi there,

We had a general question about Toolset and AJAX. While working with our web host to decrease resource usage on our website, one of the culprits that was identified was frequent visits to /wp-admin/admin-ajax.php from Toolset. (We're examining the homepage, lifetimearts.org, and some subpages.) On the homepage, we have a slider that was auto-advancing; the hits to admin-ajax.php weren't surprising. (The auto-advancing function has since been disabled.)

We've been informed by our web host that other pages which do not have slideshows also make calls to admin-ajax.php. Here's my question: aside from slideshows and things like filters on a page like versteckter Link, where else is AJAX employed by Toolset? Can you point me to a way to identify Toolset's AJAX usage on a given page or site-wide (e.g., via Query Monitor)?

Thanks.

Saul

#2878840

Christopher Amirian
Unterstützer

Sprachen: Englisch (English )

Hi Saul,

Toolset's front-end AJAX comes from View settings, so it's identifiable per View rather than site-wide. The features that generate admin-ajax.php traffic:

- Pagination with AJAX transition — manual (visitor clicks) or automatic (sliders).
- Custom search with "AJAX refresh when changing any filter" — fires on every input change, with no submit button.
- AJAX results update when visitors click the search button.
- Front-end sorting on a View that updates via AJAX.
- Infinite scroll pagination.
- Maps updating when AJAX search results change.

A View with none of these enabled makes no AJAX calls.

To identify per page:

- Open the page, press F12 → Network tab, filter by admin-ajax.
- Interact with the page and reload.
- Click a request → Payload (or Request) tab → look at the action parameter.

Toolset's actions are prefixed wpv_.

Anything else belongs to another plugin.

Thanks.