Support » Themes and Templates » reducing DB queries

  • Hello,
    my cloud hosting support suggested me to reduce DB queries by replacing static data queries on my theme files.
    moreover, they suggested me to use relative paths and avoid absolute paths when possible.
    (ie /images/image.png is better than

    I would like to ask if:
    1. I can safely replace every ‘<?php bloginfo(‘url’); ?>’ with ‘’ and keep everything intact?

    2. I can safely simply remove every ‘<?php bloginfo(‘url’); ?>’ since both
    <a href="<?php bloginfo('url'); ?>/folder1/">Folder1</a>
    <a href="/folder1/">Folder1</a>
    end up as a link to ‘’.


  • The topic ‘reducing DB queries’ is closed to new replies.