تخطي الملاحة

الوسوم: 

يحتوي هذا الموضوع رد واحد ، لديه 1صوت.

آخر تحديث بواسطة selinav قبل 3 أشهر، 4 أسابيع.

يساعده: Dražen Duvnjak.

مؤلف المقالات
أغسطس 7, 2024في 8:57 ص #16046801

selinav

Background of the issue:
I am creating a widget using WordPress blocks with fields created via the ACF plugin. I've set the wpml_cf_preferences property to 0 for the fields, indicating they should not be translated by WPML.

Symptoms:
I am encountering performance issues due to unnecessary queries from WPMLMediaClassesWPML_Media_Attachment_By_URL_Query->prefetchAllIdsFromMetas, which take up a significant amount of time.

Questions:
How can I reduce unnecessary WPML queries in ACF-based WordPress block widgets?
Why are WPML queries still being executed despite setting wpml_cf_preferences to 0?