News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Matthew Weier O'Phinney:
Zend Server, ZF2, and Page Caching
November 06, 2012 @ 10:53:56

If you're considering using Zend Server in your development, you might find this new post from Matthew Weier O'Phinney interesting. It talks about a handy feature of the tool and how it can help with the performance of a Zend Framework 2-based application.

Zend Server has a very cool Page Caching feature. Basically, you can provide URLs or URL regular expressions, and tell Zend Server to provide full-page caching of those pages. This can provide a tremendous performance boost, without needing to change anything in your application structure; simply enable it for a set of pages, and sit back and relax. [...] However, this feature is not entirely straight-forward when using a framework that provides its own routing, such as ZF2. The reason is because it assumes by default that each match maps to a specific file on the filesystem, and prepares the caching based on the actual file it hits.

Since configuration is mostly done through Server's web interface, this could be a problem. Thankfully, he shows you another setting that allows you to cache multiple versions of pages based on parameters you define. Using this and a setting of "_SERVER" with a value of "[REQUEST_URI]" you should be good to go.

0 comments voice your opinion now!
zendframework2 zendserver page cache configuration


blog comments powered by Disqus

Similar Posts

Reese Wilson: Using the ServiceManager as an Inversion of Control Container (Part 1)

Michael Nitschinger's Blog: Session Encryption with Lithium

DZone.com: Configuration is code

Padraic Brady's Blog: Zend Framework Caching (Parts 1, 2 & 2b)

Andi Gutmans' Blog: Why I'm (truly and geekishly) excited about Zend Server 5!


Community Events





Don't see your event here?
Let us know!


language framework api community release deployment podcast opinion package interview bugfix library list install introduction series symfony tips voicesoftheelephpant laravel

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework