Forums

reducing DB queries (1 post)

  1. kobitriki
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.