v1.6.0 — fixes blank post lists
Bug fix release. Update if you are running 1.5.0 or earlier.
Skipping the total-row count on secondary queries is now the PH_SECONDARY_NO_FOUND_ROWS setting, off by default. It previously always applied, with no way to switch it off.
Why it matters: no_found_rows sets found_posts and max_num_pages to 0, and themes and page builders that read those values to decide whether to output a list then render nothing at all. Elementor's post widgets return before emitting any markup, so the section disappears completely — no container, no "nothing found" notice — leaving no clue as to the cause. Found on a live OceanWP + Elementor Pro site whose news listing went blank.
If you want the optimisation, enable it in Settings → Omni Performance Hardening, then check that every post listing on the site still appears.
修正版本,1.5.0 以前的使用者請更新。
次要查詢略過總筆數計算改為 PH_SECONDARY_NO_FOUND_ROWS 設定,預設關閉。此行為原本無條件套用且沒有開關。
原因:no_found_rows 會使 found_posts 與 max_num_pages 為 0,凡是依這些值判斷是否輸出清單的佈景主題或頁面建構器都會整塊變空白。Elementor 的文章 widget 在該值為 0 時會直接中止渲染,連容器與「找不到文章」提示都不會產生,站長完全無從得知原因。此問題於實際站台(OceanWP + Elementor Pro)的最新消息頁重現。
需要此優化者可於「設定 → Omni 效能強化」開啟,開啟後請確認站上所有文章清單仍正常顯示。
安裝:後台「外掛 → 安裝外掛 → 上傳外掛」上傳附件 ZIP。
完整變更紀錄見 CHANGELOG.md