reduce loading time/number of requests to API
-
Hello, we are using Woocommerce with Full Site Editing (TwentyTwentyFour theme) to build our new online store (while in development, it’s not yet visible on our website, but on a private development page).
Problem description: Loading the shop page takes very very long. You can actually watch parts appear and then disappear and re-appear again.
Analysis: I used Firefox Developer Tools and added/deleted blocks and found out that for each block multiple requests are sent to the woocommerce api. I’ll add them below. Using just the “all products” block, 3 or 4 requests are ok. But for each filter block I add, another 3 or so requests are added. This sums up.
I do understand that the filters are dynamic and thus have to access the api to find out which attributes to offer. But there must be a way to either reduce the number of requests or speed them up (maybe with caching?).
I took a look at your featured partners’ websites and noticed that I don’t see all those requests for them. So there must be a way.I think it might be the same problem as described here, but there was no solution, the problem just disappeared … ? https://www.ads-software.com/support/topic/multiple-woocommerce-rest-api-calls/
These are the requests just to load the “all products” block. They seem redundant to me.
***/wp-json/wc/store/v1/products?orderby=date&order=desc&catalog_visibility=catalog&per_page=9&page=1&_locale=user
***/wp-json/wc/store/v1?_locale=user
***/wp-json/wc/store/v1/products?include=0&_locale=user
***/wp-json/wc/store/v1/products?_locale=userSystem Status Report
### WordPress Environment ###
WordPress address (URL): [Redacted]
Site address (URL): [Redacted]
WC Version: 9.1.4
Legacy REST API Package Version: Auf dieser Website ist das alte REST-API-Plugin nicht installiert.
Action Scheduler Version: ? 3.7.4
Log Directory Writable: ?
WP Version: ? 6.5.5 - Es ist eine neuere Version von WordPress verfügbar (6.6.1)
WP Multisite: –
WP Memory Limit: 512 MB
WP Debug Mode: –
WP Cron: ?
Language: de_DE
External object cache: –
### Server Environment ###
Server Info: Apache
PHP Version: 8.3.9
PHP Post Max Size: 128 MB
PHP Time Limit: 180
PHP Max Input Vars: 4000
cURL Version: 7.64.0
OpenSSL/1.1.1n
SUHOSIN Installed: –
MySQL Version: 8.0.33
Max Upload Size: 128 MB
Default Timezone is UTC: ?
fsockopen/cURL: ?
SoapClient: ?
DOMDocument: ?
GZip: ?
Multibyte String: ?
Remote Post: ?
Remote Get: ?
### Database ###
[REDACTED]
### Post Type Counts ###
attachment: 126
customize_changeset: 114
custom_css: 1
ml-slide: 52
ml-slider: 1
nav_menu_item: 27
page: 28
post: 18
product: 4
rcb-banner-link: 4
rcb-cookie: 1
revision: 1884
shop_order_placehold: 5
ufaq: 4
wpcf7_contact_form: 1
wpforms: 1
wp_block: 11
wp_global_styles: 3
wp_navigation: 6
wp_template: 3
wp_template_part: 6
### Security ###
Secure connection (HTTPS): ?
Hide errors from visitors: ?
### Active Plugins (13) ###
Koko Analytics: von ibericode – 1.3.10
Antispam Bee: von pluginkollektiv – 2.11.6
The SEO Framework: von The-SEO-Framework-Team – 5.0.6
Contact Form 7: von Takayuki Miyoshi – 5.9.8
EWWW Image Optimizer: von Exactly WWW – 7.8.0
MetaSlider: von MetaSlider – 3.90.1
Mollie-Zahlungen für WooCommerce: von Mollie – 7.5.5
Real Cookie Banner (Free): von devowl.io – 4.7.13
Trusted Shops Easy Integration for WooCommerce: von vendidero – 2.0.2
Spectra: von Brainstorm Force – 2.15.0
Ultimate FAQ Accordion Plugin: von Etoile Web Design – 2.2.14
Germanized für WooCommerce: von vendidero – 3.17.1
WooCommerce: von Automattic – 9.1.4
### Inactive Plugins (5) ###
Flexible Checkout Fields: von WP Desk – 4.1.8
MetaSlider Lightbox: von MetaSlider – 1.13.2
PDF Invoices & Packing Slips for WooCommerce: von WP Overnight – 3.8.6
Simple Social Buttons: von WPBrigade – 5.2.0
WooCommerce PDF Invoices, Packing Slips, Delivery Notes and Shipping Labels: von WebToffee – 4.6.0
### Dropin Plugins () ###
maintenance.php: maintenance.php
### Settings ###
API Enabled: –
Force SSL: –
Currency: EUR (€)
Currency Position: right_space
Thousand Separator: .
Decimal Separator: ,
Number of Decimals: 2
Taxonomies: Product Types: external (external)
grouped (grouped)
simple (simple)
variable (variable)
Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
exclude-from-search (exclude-from-search)
featured (featured)
outofstock (outofstock)
rated-1 (rated-1)
rated-2 (rated-2)
rated-3 (rated-3)
rated-4 (rated-4)
rated-5 (rated-5)
Connected to WooCommerce.com: –
Enforce Approved Product Download Directories: ?
HPOS feature enabled: ?
Order datastore: Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore
HPOS data sync enabled: –
### Logging ###
Enabled: ?
Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2
Retention period: 30 Tage
Level threshold: –
Log directory size: 166 kB
### WC Pages ###
Shop-Basis: #15 - /produkte/
Warenkorb: #1868 - /warenkorb/ - Contains the woocommerce/cart block
Kasse: #1869 - /kasse/ - Contains the woocommerce/checkout block
Mein Konto: #1870 - /mein-konto/
Allgemeine Gesch?ftsbedingungen: #1872 - /agb/
### Theme ###
Name: nk-fse-child
Version: (Update auf Version 0 ist verfügbar)
Author URL:
Child Theme: ?
Parent Theme Name: Twenty Twenty-Four
Parent Theme Version: 1.1 – 1.2 ist verfügbar
Parent Theme Author URL: https://de.www.ads-software.com
WooCommerce Support: ? Nicht deklariert
### Templates ###
Overrides: ***/wp-content/plugins/woocommerce/templates/block-notices/error.php
***/wp-content/plugins/woocommerce/templates/block-notices/notice.php
***/wp-content/plugins/woocommerce/templates/block-notices/success.php
### Admin ###
Enabled Features: activity-panels
analytics
product-block-editor
coupons
core-profiler
customize-store
customer-effort-score-tracks
import-products-task
experimental-fashion-sample-products
shipping-smart-defaults
shipping-setting-tour
homescreen
marketing
mobile-app-banner
navigation
onboarding
onboarding-tasks
product-custom-fields
remote-inbox-notifications
remote-free-extensions
payment-gateway-suggestions
shipping-label-banner
subscriptions
store-alerts
transient-notices
woo-mobile-welcome
wc-pay-promotion
wc-pay-welcome-page
launch-your-store
Disabled Features: experimental-blocks
minified-js
pattern-toolkit-full-composability
product-pre-publish-modal
printful
settings
async-product-editor-category-field
product-editor-template-system
Daily Cron: ? Next scheduled: 2024-06-17 09:25:58 +00:00
Options: ?
Notes: 67
Onboarding: completed
### Action Scheduler ###
Abgeschlossen: 66
Oldest: 2024-05-17 04:56:01 +0000
Newest: 2024-06-16 10:46:18 +0000
Ausstehend: 18
Oldest: 2024-06-16 19:47:18 +0000
Newest: 2024-07-01 14:04:40 +0000
Fehlgeschlagen: 5
Oldest: 2024-05-20 12:21:11 +0000
Newest: 2024-06-13 20:34:47 +0000
### Status report information ###
Generated at: 2024-08-02 09:58:12 +00:00The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.