Relationships weight / query caching

Support General Relationships weight / query caching

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #44263
    JorgeJorge
    Participant

    I'm working on a site that has got some heavy relationships (post-type related, ha!). Is it possible to do something in order for those to not be that resource intensive?

    Thanks!

    #44275
    PeterPeter
    Moderator

    Hello Jorge,

    Can you please give more details about your question? Do you mean cache the query when setting up the connection in the admin area or show the connection post in the frontend?

    #44306
    JorgeJorge
    Participant

    Hi Peter, sorry for the late reply.

    I mean when the connection is shown in the frontend. Monitoring the server usage, when having the relationships queried, we get some spikes/high consumption. If we disable them, the high usage is mostly gone.

    #44314
    PeterPeter
    Moderator

    Hello,

    The relationship injects the relationship parameter to the WP Query of WordPress and its data from a custom table so I think it won't affect the performance significantly. You can try using a caching plugin to cache the query like WP Rocket or Redis Object Cache to prevent high consumption on your site.

    Let me know how it goes.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.