Giter Club home page Giter Club logo

Comments (6)

pryley avatar pryley commented on June 3, 2024

That query is only run once per shortcode. You probably have more than one summary shortcode or widget on the page.

image

image

from site-reviews.

wpsumo avatar wpsumo commented on June 3, 2024

@pryley You are right it's tagged the same so query monitor flag it as duplicate while it's two different short code widgets. Thanks.

There is no way it can be limited with 1 query as the same array is used just different parts for different widgets to place them differently? As I think it's commonly used like this for some users to have a more flexible design. But that comes at extra SQL queries. Just asking, the sql queries is well optimized anyhow but maybe things can still be improved. Just an idea maybe not possible to inherit and fetch the value from the other array already called and recevied.

from site-reviews.

pryley avatar pryley commented on June 3, 2024

All database queries used in Site Reviews are highly optimised for performance. The queries for each shortcode differ depending on the options used.

If you need further optimisation, I recommend you check out one of the many caching and performance plugins which provide database query caching.

from site-reviews.

wpsumo avatar wpsumo commented on June 3, 2024

So site reviews take full advantage of redis as object cache in wordpress? I have it enabled on the stack and in wordpress.

from site-reviews.

pryley avatar pryley commented on June 3, 2024

Site Reviews uses the WordPress wpdb class to make queries to the database so any caching that affects WordPress queries should apply.

from site-reviews.

wpsumo avatar wpsumo commented on June 3, 2024

Thanks, sounds great reassuring to hear.

from site-reviews.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.