Problem: I am seeing high CPU usage on VPS hosting but not on shared hosting. It seems to be related to Views.
Solution:
- If you have Views that use AJAX to update, or automatically paginate like Sliders, consider turning off caching and preloading for these Views temporarily to see if the performance improves. You can find those settings in the View editor under Custom Search, and Pagination and Slider settings.
- If you have several Views with automatic pagination, consider timing them so they do not all update in the same time interval.
- Consider manual pagination instead of automatic pagination in some or all Views.
- Temporarily set a small limit on Views that are configured to show many or unlimited results. If you do not see the limit settings in the View editor, scroll to the top right corner and click "Screen Options". You can enable the setting here.
- If you have nested Views, consider simplifying the View structure. Looping over loops can be quite intensive.
These are usually the easiest things to try. Beyond that, it comes down to inspecting each View on the page to determine if there is a bottleneck in one View, or if it's the combination of all Views at once.
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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | - | - |
13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | - | - |
Supporter timezone: America/New_York (GMT-04:00)
This topic contains 2 replies, has 2 voices.
Last updated by 5 years, 12 months ago.
Assisted by: Christian Cox.