thomas Posted February 26, 2014 Share Posted February 26, 2014 Hello, I noticed that creating new pages and saving them is getting really really slow on my production server. One parent has 1500 pages and when I add another one, it can take up to a minute for it to be created. For a different parent with only 300 pages it's fast as usual. I am using a frontend where users can register and create new pages so making them wait for over a minute isn't quite ideal. It can't be my codes fault though because it takes just as long in the admin ... Thanks for any hints, thomas Link to comment Share on other sites More sharing options...
kongondo Posted February 26, 2014 Share Posted February 26, 2014 Really difficult to say much without much info... PW version? Server environment? Any hooks doing things in Admin? Any modules doing stuff in the background? etc? 3 Link to comment Share on other sites More sharing options...
ryan Posted March 16, 2014 Share Posted March 16, 2014 Thomas, there isn't any reason why it should take that long. Number of children/siblings makes no difference to how long it takes to add a page. As a result, I would look at what else is happening on your front end or in any modules that may be taking part here. Because the time seems to increase with quantity of pages, most likely you've got something loading all those sibling pages and pulling something from them. In particular, look for any $parent->children() or $page->siblings() calls that lack "limit=n" selectors in them. Feel free to post the code you are using and we can take a look at it. Link to comment Share on other sites More sharing options...
thomas Posted March 25, 2014 Author Share Posted March 25, 2014 Thanks for the info! I found the error, it was my cache clearing module that kept looking for not-yet-existing cache files to delete. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now