Skip Navigation

[Resolved] Taxonomy Archive pages won’t load while logged in

This thread is resolved. Here is a description of the problem and solution.

Problem:
While logged-in taxonomy archive pages on the front end load very slowly, but not as a guest user.

Solution:
WP Rocket seems to be the issue. It has settings that can exclude the taxonomy archives, which fixes the problem.

This support ticket is created 6 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

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.

Our next available supporter will start replying to tickets in about 3.21 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 3 replies, has 2 voices.

Last updated by jonB-5 6 years, 2 months ago.

Assisted by: Nigel.

Author
Posts
#1094816
Screen Shot 2018-08-29 at 12.15.43.png

I have recently set up a WordPress Archive page for one of my taxonomies 'Countries'.

While these pages seem to load relatively okay for guest users, some of those same pages simply won't load whilst I'm logged in as Admin.

For an example, log in using the credentials provided and head to hidden link

If the page does load, that's because it's been cached - To clear the cache for the page go to 'WP Rocket' in the top bard menu (beside 'Front-End Layouts Editor' button) and select 'Purge This URL'. The page will then refresh and will likely load very slowly (if at all).

I've never has such a slow speed issue with my other large archives on the site so any assistance would be most appreciated!

For reference, I recently updated all Toolset plugins to their latest versions and the php from 5.6 to 7, but this issue was present both before and after these updates.

#1094920

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

I can't load that archive page.

I notice you have Query Monitor installed, and I activated that but it doesn't help because the page doesn't finish loading and so I cannot look at its results to spot what is causing the issue.

I'm taking a copy of this updated site to install locally so that I can take a closer look.

I'll keep you posted.

#1094944

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Looking at your debug info your server settings seem more than adequate.

I installed the copy of the site, and I could see the same problem, with it taking a very long time to load the country archive page.

I disabled the performance plugin WP Rocket, and that seemed to be the cause. The page loads, not blazingly fast, but in just over 5 seconds.

One time Query Monitor reported a slow query, a relationships query. Looking through the custom archive, and the templates and Views used within it, the only thing I noticed was that the View "Single Item Card - Voyages Available Banner (Voyage as Child)" contains a relationship Query Filter, which specifies "any" relationship. If you know which relationship is pertinent here you should specify it, which should help a little with the query time, but will in any case only have a minor effect on the actual page load time.

When I reactivated the WP Rocket plugin it ground the archive page to a halt.

I'm not too familiar with it, I don't know if you can exclude it from the archive page in its settings...

#1104421

Hi Nigel,

Thanks for debugging, I see the same result when telling WP Rocket not to archive the country taxonomy pages.

It's a big improvement on the page not loading at all so I'll see how it goes for now.