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 996963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T06:57:27+00:00 2026-05-16T06:57:27+00:00

My application based on Zend Framework and Doctrine includes > 300 files on each

  • 0

My application based on Zend Framework and Doctrine includes > 300 files on each request. They are mostly the same files.

This is a quite huge overhead. Partially solved by Zend_Cache (and Memcache), but not all the pages may be cached.

  • How to reduce this number? How to speed up?

Doctrine has an option to compile the needed files which seems quite rational for production server and final version of the app.

My plan is to compile other libraries too (I have already stripped all require_once‘s).

  • Are there any tools for this task? Maybe some cache drivers do it automatically? How to set them up?
  • 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-05-16T06:57:28+00:00Added an answer on May 16, 2026 at 6:57 am

    Best option is to use APC or Zend_Accelerator. But still you can make these “compilation” scripts that merge classes together into one file. That lowers the required IO to minimum. Unfortunately, you also need to rewrite the autoloading process so that it looks into appropriate file. You can usually condense common classes together (Zend_Form + Elements + Decorators, frequently used validators, Request + Response + Router + Controller, Zend_Db + adapters + Zend_Db_Select, etc.). Mainly the classes always used on each request can be easily condensed and included manually in one file. Best way is to add debug call, that save all included files (http://www.php.net/get_included_files) into DB and then:

    SELECT * FROM files GROUP BY filename WHERE COUNT(filename) = $numOfRequests
    

    All the files in the result can be safely merged into a single file and included before bootstraping 🙂

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

Sidebar

Related Questions

All, I am working on a Zend Framework based web application. We keep encountering
Before I converted my Zend Framework application to a module based structure, it had
I use customized paths for my application based on Zend Framework (a.k.a. themes). The
I am building an application based on the Zend Framework, and my issue is
I have a Zend Framework application based on the quick-start setup. I've gotten the
I'm building a Zend-based Web app that will permit third-party extensions. Essentially, this application's
I am developing an application using Zend Framework 1.11.10. I have used this article
Im trying to install a simple Zend Framework based web application on a Linux
For an application based on Zend Framework I use apaches SetEnv in .htaccess .
Im using a JQuery DatePicker in a Zend Framework based application Form. Here is

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.