ผู้ใช้นี้ไม่มีหัวข้อที่ชื่นชอบ.
หัวข้อฟอรัมที่ชื่นชอบ
หัวข้อฟอรัมที่สร้าง
| สถานะ |
หัวข้อ
|
ผู้สนับสนุน | เสียง | โพสต์ | ความใหม่ |
|---|---|---|---|---|---|
|
website too slow
1
2
เริ่มโดย: vytautasJ-3
ใน: English Support
Problem: Further, we provided code improvements for caching: if (\Elementor\Plugin::$instance->editor->is_edit_mode() || \Elementor\Plugin::$instance->preview->is_preview_mode()) {This code ensures that caching does not interfere with live editing in Elementor. We also suggested refining cache invalidation to be less aggressive and only clear the cache for relevant changes: add_action('created_term', 'tm_clear_menu_cache_on_product_cat', 10, 3);<br />add_action('edited_term', 'tm_clear_menu_cache_on_product_cat', 10, 3);<br />add_action('delete_term', 'tm_clear_menu_cache_on_product_cat', 10, 3);<br />function tm_clear_menu_cache_on_product_cat($term_id, $tt_id, $taxonomy) {<br /> if ($taxonomy !== 'product_cat') {<br /> return;<br /> }<br /> // ... clear cache<br />}Additionally, we recommended including a hash of widget settings in the cache key to make caching more effective: $settings_hash = md5(serialize($widget->get_settings_for_display()));<br />$cache_key = 'tm_menu_' . $widget_id . '_' . $lang . '_' . $settings_hash; If these solutions do not fully resolve the issue or if they become outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket at WPML support forum. |
|
0 | 27 | 2 weeks, 4 days มาแล้ว | |
|
web site note translated
เริ่มโดย: vytautasJ-3 ใน: English Support |
|
1 | 5 | 5 months, 2 weeks มาแล้ว |