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 http://mysite.com/images/image.png)

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

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

    thx

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