Take the 2-minute tour ×
Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. It's 100% free, no registration required.

Hello Craft community,

My team and I have built a site for a client and it looks great. The site runs just fine in my developers local environment and we're all very happy. I have the site now set up on my preproduction Red Hat environment and when I access it there is about 30 seconds of latency, every single time. I cannot figure out where this latency happens, perhaps there is a configuration somewhere I am missing?

I can access images, js files, etc. without any issue - but once I hit a php file in the Craft environment, things are super slow.

I tried turning the devMode flag to false in the general configurations and that didn't seem to help.

This has nothing to do with my browser - I've tried a straight CURL to the URL and I see the same amount of lag. Perhaps there's some server-side caching I need to enable? Like I said - this is not just with my site, it was slow during the install as well as when I just access the admin tool to look at/change configurations. Please help!

share|improve this question
    
Have you any api calls that have hit their rate limit... that caught me out twice! –  Sean O'Grady Jul 16 at 13:06
    
Sean - what kind of API calls? I am just trying to hit my home page of my site of the landing page, and nothing. Even if I was hitting an API - I'm no where near a rate limit, I'm the only one hitting it! :) –  Shane Kaszyca Jul 17 at 19:48

1 Answer 1

Could you upload a "non Craft" php-file, restart the server, and check if this file also loads slow? If it does, the server has probably some kind of an issue, and you should contact your hoster.

If not, try:

  • deleting the /craft/app/storage/runtime directory.
  • bumping up the php memory_limit.
  • contacting P&T support from the Dashboard widget. They love environmental issues (So I've heard... *cough*).
share|improve this answer
    
I did load an info.php to dump my environment information and it loads immediately without any issue from both the browser as well as a curl statement. I'll look into the other options. Right now my php memory is set to 128 MB - which I've read in the requirements is enough. I removed the runtime directory and that did not help either. I turned on slow query logging to see if anything would spit out - nothing shows up. Slow query threshold at 2 seconds. –  Shane Kaszyca Jul 17 at 19:47
    
Ok, it looks more and more like an environmental issues. You should contact P&T now ;) –  Victor In Jul 17 at 20:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.