Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9182953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T18:41:06+00:00 2026-06-17T18:41:06+00:00

I found that pages in my CakePHP application that do not call the database

  • 0

I found that pages in my CakePHP application that do not call the database take about 4 seconds to load, which is way too slow.

I tried the following things to no avail:

  • Rebooting the computer
  • Reinstalling Uniserver
  • Toggling the debug level from 2 to 0
  • Switching to APC cache from FileCache

I got an XDebug profiler dump and observed in KCachegrind that the most time consuming function was php::session_start and that it was called by \webroot\index.php. I also checked the performance using the CakePHP Debug Kit and found that the most time consuming item was “Core Processing (Derived from $_SERVER[“REQUEST_TIME”])”.

What can I do to get my pages to load faster?

In case my hardware is relevant, I have described the operating environment below:

  • ThinkPad T400
  • Intel Core 2 Duo processor
  • OCZ SSD
  • 4 GB RAM
  • Windows 7 64-bit edition
  • CakePHP version 2.2.3

As a starting point, I compared my working copy of php.ini with the production version of php.ini provided by Uniserver and found the following major differences:

  • PHP error levels (E_ALL, E_NOTICE, E_STRICT, etc.)
  • $php_errormsg logging
  • mysqlnd.collect settings (2 of these)
  • Disable Xdebug

Then, I did some before and after comparisons. The green cells are values that are <= 1 second, which is the limit for humans perceiving something is “pretty fast.” I realize that actually, one must be <= 0.1 seconds to be “instant” but that’s seems a bit unrealistic.

Comparison of processing time required to display CakePHP pages

(To view the image in full-size, go to Windows SkyDrive at http://sdrv.ms/YomWdO.)

I tried using the website application while running under the “After” version of php.ini and things aren’t awful but I still feel like I’ve hit a road bump when I launch most pages, especially when I can launch some pages instantly.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T18:41:08+00:00Added an answer on June 17, 2026 at 6:41 pm

    The solution is to change the following settings:

    • PHP error levels (E_ALL, E_NOTICE, E_STRICT, etc.)
    • $php_errormsg logging
    • mysqlnd.collect settings (the second one)
    • Disable Xdebug

    Then, get a dedicated production server so that you don’t have to keep switching copies of php.ini.

    Last of all, if that doesn’t speed things up enough and it’s just a personal project (though it might be a critical personal project), give up and move on with life.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've found that the Like Box app for Facebook will not recognise certain pages
I've always found that defining URLs for other pages in a Web Application seems
i custom varnish 500 error page,but i found that it could not display chinese
A neat feature which I found in CakePHP was the ability to set a
I have found that the functional tests in Symfony2 always try to request pages
I'm looking at adding master pages to an existing site but have found that
For a project, I'm having dynamic pages that are retrieved from a content database.
I have an application that shows presentations that are composed by pages. Those pages
I have a cakephp (1.3.10) application that seemed to work fine, but recently I
I've upgraded to KnockoutJs 2 and found that pages that use template bindings have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.