- This topic has 12 replies, 3 voices, and was last updated 4 years, 10 months ago by Tom.
-
AuthorPosts
-
June 1, 2019 at 12:51 am #916868Romain
Hello everyone,
Thank you for this super theme and its premium plugin that is at the top.I use Polylang and I noticed that the number of requests on archine pages are very high 1000 requests per page or 7sec of change.
I watch with Query monitor and it’s the Elements plugin that is in “cause”, after disabling it I drops to 135 queries.
Could you in the near future try to optimize this? I guess I’m not the only one in this configuration.
cordially
Romain
June 1, 2019 at 4:24 am #916957EnderThat seems very strange. I have a similar configuration. But I didn’t notice anything like that. Can you show more evidence for the problem?
I use static pages for Category Archives. Perhaps it could help.
https://docs.wpshowposts.com/article/use-static-pages-as-category-archives/
June 1, 2019 at 6:42 am #917035TomLead DeveloperLead DeveloperThat sounds like something is broken, as Elements couldn’t make that many queries if it tried.
Does the issue go away if you disable Polylang?
June 2, 2019 at 5:57 am #917608RomainHello,
Do Polylang to deactivate and active element: 600 Queries
https://1drv.ms/u/s!Aiq0yirkk82khcV8GvWvhsQDwWXM-gHave Disable Element and Active Polyland: 130 Queries
With Element and Active Polylang: 1100 QueriesIn view of the number of requests, I think the problem comes more than polylang element.
Romain
June 2, 2019 at 7:29 am #917799TomLead DeveloperLead DeveloperJust crazy numbers. How many published Elements do you have?
June 2, 2019 at 8:16 am #917825RomainCurrently about 500 published articles, the problem is not that the figure, especially the page generation time that is impacted at the level of PHP, with Element + Polylang almost 3 sec is much too long …
June 2, 2019 at 8:44 am #917844TomLead DeveloperLead Developer500 articles, but how many Elements?
June 2, 2019 at 8:47 am #917850RomainThe number of elements does not change the number of requests, the increase of requests on the archives is done as soon as the functionality element is activated.
If not currently 1 asset
RomainJune 2, 2019 at 12:27 pm #917951TomLead DeveloperLead DeveloperSo having 1 Element active vs 10 makes no difference to the queries?
Are you using a Hook Element? If so, what code are you adding to it?
June 3, 2019 at 9:36 am #918743RomainHello,
Actually the number of active element does not change the number of requests.
I used a hook to display the breadcrumb of yoast. For the moment to avoid overwriting, I added the function directly the template file.
It’s a shame because this plugin gave me plenty of ideas to improve the design of the website.
I just did another test, I deleted all the elements, just by activating the plugin the number of requests is impacted
Romain
June 3, 2019 at 9:55 am #918756TomLead DeveloperLead DeveloperThere must be something corrupt in your database, as I can’t replicate this at all (and no one else has ever reported a similar issue).
Can you replicate it on a fresh install/database?
June 3, 2019 at 10:10 am #918769RomainI found the cause of the problem, it does not come from polylang or generatepress, but from a filter that I added to display all the cpt in the archive page.
Thanks for your help ๐
June 3, 2019 at 2:54 pm #918969TomLead DeveloperLead DeveloperGlad you found the issue ๐
-
AuthorPosts
- You must be logged in to reply to this topic.