Diego on "[Plugin: WP Job Manager] Very Slow Search Loading"

ساخت وبلاگ

If I may, I would like share my findings: it's not the search query that is slow, but the rendering of the data.

I investigated the issue for a client, as it took a long time for the Ajax call to retu a result. After digging fairly deep, I discovered that the query is always quite fast (the raw results are also cached, making it even faster), and that it's the formatting of the results that takes ages.
For example, the Listify theme processes all the retued items, one by one, to format them, and that is time consuming. A basic theme, such as TwentySixteen, doesn't perform such operation, and the result is retued much quicker (we are still talking about the result of the Ajax call).

One way to fix this issue could be to extend the WP Job Manager plugin to implement the caching of the formatted. As I wrote, currently the plugin caches the raw data retued by the query, but it still loops through it and passes each entry to the theme for formatting. On our test site, caching the formatted data can cut the loading time from 15-20 seconds to 2 seconds (the first rendering is still slow, because the processing must take place).

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 274 تاريخ : پنجشنبه 14 مرداد 1395 ساعت: 23:43