Jump to:

23013 Posts in 11872 Topics by 2830 members

General Questions

SilverStripe Forums » General Questions » Over 20sec to save a page

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
Go to End
Author Topic: 294 Views
  • suntrop
    Avatar
    Community Member
    131 Posts

    Over 20sec to save a page Link to this post

    I set up a new site (v3.0) currently and noticed it takes sometimes more than 20 seconds to save a page. On average it takes about 15 seconds but sometimes I have to wait up to 30 seconds before page is saved and the response message appears. I only added 2 text fields and 6 upload fields (for photos). Site is installed on my managed server with less than 20 other sites and none is a high-traffic site.

    Unfortunately I don't have a special tool to test. But is there anything I can check why it is so slow?

    The front-end loads quickly, only the admin area is slow and saving pages is even slower. I checked saving in Chrome without any add-ons installed. Nothing better.

    Any ideas?

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: Over 20sec to save a page Link to this post

    Do you have the site running on your local machine to test to see if performance is an issue just on your server?

    When you save a page, the onBefore/ onAfter write functions get called. It is possible you have code in those which may be executing slow (say you have something to email people when you publish a page). Or MySQL server could be slower in production than local. XHProf is a great tool to debug this information.

  • suntrop
    Avatar
    Community Member
    131 Posts

    Re: Over 20sec to save a page Link to this post

    Thanks Willr for your help!

    I have no copy on a local machine, but I've got other installations on the same server and all save pages much quicker. Each installation has got the same PHP version/settings and is tied to the same MySQL server. None of them is configured differently. However, I've tested different PHP versions (even FastCGI is slow). There is no customization for onBefore() or onAfter(). Actually there is nothing I can think of what makes this installation different.

  • suntrop
    Avatar
    Community Member
    131 Posts

    Re: Over 20sec to save a page Link to this post

    I've got XHProf installed and wanted to test it. But where do I have to insert the start and end point? Which file is best insert the code and profile the back-end (perhaps the front-end as well).

    294 Views
Page: 1
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.