• Resolved baverkerk

    (@baverkerk)


    It takes more then 30 seconds to load this script. Is there an other way to display all jobs on the page? or is it only possible with the [jobs] shortcode. It would be better if I could use a shortcode like used in widgets.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mikey (a11n)

    (@mikeyarce)

    Hi @baverkerk – good question!

    I can see that that page is taking a long time to load – I tested this endpoint out on my test site without any other plugins and it loaded no problem. Have you tried disabling all plugins except WP Job Manager and seeing if it’s still slow?

    You might also have some luck asking your host to see if they notice anything happening on that page load, it might be that another plugin is having errors or that there is some other bottleneck that we can’t see.

    Hope this helps!

    Thread Starter baverkerk

    (@baverkerk)

    I believe it’s something in the technical setup we’re using with varnish as a reverse proxy which isn’t caching any ajax requests. So is there a way to get the same visual result accept without using the ajax requests?

    Plugin Author Mikey (a11n)

    (@mikeyarce)

    I believe it’s something in the technical setup we’re using with varnish as a reverse proxy which isn’t caching any ajax requests.

    It looks like Varnish is caching the requests as I see the 1.1 varnish-v4 header on the result. It looks like when Varnish is NOT caching them, it takes a lot longer. My guess is that there’s a databse query somewhere taking a really long time, or something else like another plugin that might be causing some slow down.

    So is there a way to get the same visual result accept without using the ajax requests?

    The [jobs] shortcode which uses the get_listings AJAX request is the way to get this exact output, so I would suggest looking deeper into what might be causing the slowdown. Alternatively, you could write your own WP_Query to get what you need – you can look at the code for the get_listings query here: https://github.com/Automattic/WP-Job-Manager/blob/28f871e3bac1bede01af6186bc4525fe38220c63/includes/class-wp-job-manager-ajax.php#L122

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Slow loading of /jm-ajax/get_listings/’ is closed to new replies.