Jump to:

22976 Posts in 11620 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » Terribly slow CMS

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2 3 4 5
Go to End
Author Topic: 7294 Views
  • BigChris
    Avatar
    Community Member
    63 Posts

    Re: Terribly slow CMS Link to this post

    Another performance tip if using Apache and you have access to the Apache Config files -

    Put the main .htaccess info into the Apache config files.
    Depending on which version of Apache this can be done in httpd.conf as a Directory
    like
    <Directory "install-directoy of Silvertripe">
    Silverstripe htaccess content goes here
    </Directory

    This is an improvement in Apache as the htaccess is now in memory and not being read each time a page is accessed.

    It makes Silverstripe run that wee bit quicker.

  • Judge
    Avatar
    Community Member
    79 Posts

    Re: Terribly slow CMS Link to this post

    Do you have any figures on this? I can't see it saving anything more than a few microseconds per request, especially when running under Linux where the .htaccess files are likely to already be cached in memory.

    Not saying it won't help, but just wondering whether the cost/benefit makes it worthwhile doing.

    -- Jason

  • SSadmin
    Avatar
    Community Member
    90 Posts

    Re: Terribly slow CMS Link to this post

    Really good to see the performance problem has been solved.
    Thanks AlexB...i am going to check my Assets mode...
    Its really good to see lots people actually working for improving and providing suggestion for a better CMS.
    So pleasure to be a part of the community:D

  • BigChris
    Avatar
    Community Member
    63 Posts

    Re: Terribly slow CMS Link to this post

    Hi Jason,

    I set up a little test running 2 separate installs of SilverStripe v2.3.6. on Linux.
    Both versions are the install of SilverStripe with nothing added.

    http://www.phpall.com with mod_rewrite running via .htaccess
    http://www.phpsmith.com with mod_rewrite running via httpd.conf

    The difference between the 2 is I put both DocumentRoot .htaccess and the assets/.htaccess into the httpd.conf file.

    There is a slight improvement in using httpd.conf tho it is almost negligible. Seams to sometimes shave off about 100 miliseconds.

    Would it be a benefit to a site with heavy traffic?

    Chris

  • Judge
    Avatar
    Community Member
    79 Posts

    Re: Terribly slow CMS Link to this post

    100 milliseconds is not insignificant - it's a tenth of a second. You could do a 100+ simple database lookups in that time.

    I would not have thought that is how long it takes to load the file (think about how many files are loaded in one SS page request). Perhaps the time is involved in parsing and processing the file? Something to bear in mind when deploying websites in general. Thanks.

    -- Jason

  • Billy Bob
    Avatar
    Community Member
    9 Posts

    Re: Terribly slow CMS Link to this post

    Just a quick update.

    The good news is:

    1. There is NO bad news &
    2. SilverStripe is running like a dream.

    Cheers once again.

  • Hamish
    Avatar
    Community Member
    712 Posts

    Re: Terribly slow CMS Link to this post

    It is always better to use your .conf rather than .htaccess:

    See the apache .htaccess tutorial:

    "In general, you should never use .htaccess files unless you don't have access to the main server configuration file. There is, for example, a prevailing misconception that user authentication should always be done in .htaccess files. This is simply not the case. You can put user authentication configurations in the main server configuration, and this is, in fact, the preferred way to do things."

    It goes on to explain why, for performance and security reasons.

    Of course, it doesn't really matter for a lot of people, but it's an easy performance win (100ms is huge!).

  • contigo
    Avatar
    Community Member
    16 Posts

    Re: Terribly slow CMS Link to this post

    another big props to Alex. Tried his tip on a new v2.4.0rc1 installation. My admin views were loading slow. Now, fast

    -Billy

    7294 Views
Page: 1 2 3 4 5
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.