zend-frameworkzend-server

Optimising the Zend Framework


I'm trying to get as much performance as I can out of my application, which uses the Zend Framework.

I'm considering using the Zend Server, with APC enabled. However, I need to know a few things first.

Is there any benefit of using Zend Server + Zend Framework, or should I just use any ordinary system to host this?

Shamil


Solution

  • My tips for faster ZF (try from top to bottom):

    Optimize include path

    Use PHP 5.5 with OPCache enabled [NEW]

    Cache table metadata

    Favour viewHelpers over using action() view helper

    Use classmap autoloader

    Minimize path stacks

    Strip require_once

    Favour render() over partial() view helper

    Cache anything possible

    Never use view helper action() or action helper actionStack()

    Disable viewRenderer

    Try my superlimunal plugin

    Server-side file minification

    Any opcode cache is of course a must have ;) (APC, ZendOptimizer, etc.)