30.07.2012 Views

Reference Guide

Reference Guide

Reference Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Zend Server <strong>Reference</strong> Manual<br />

Fine Tuning Optimizer+<br />

The performance improvement gained by letting the Optimizer+ run out-of-the-box can be further<br />

enhanced with fine-tuning. These are advanced settings that need to be evaluated based on your<br />

environments usage specifications and performance requirements.<br />

Note:<br />

These are only recommendations, in most cases, such fine-tuning should not be necessary.<br />

Disabling Code Change Auto-Detection<br />

In the Administration Interface, to view the specific directives for Optimizer+, go to Server Setup |<br />

Components and click on the Directives link next to the Optimizer+.<br />

Look for "zend_optimizerplus.validate_timestamps" and set the value to Off.<br />

This speeds up the server, but also requires that you restart the server ( ) if you<br />

deploy new versions of existing files.<br />

When to change: If your PHP code is rarely updated/changed or if you are capable of manually restarting<br />

your PHP on every code update.<br />

When not to change: If you are in development and you are frequently changing code, or if you do not<br />

have control over the code update process.<br />

Decreasing Code Validation Frequency<br />

In the Administration Interface, to view the specific directives for Optimizer+, go to Server Setup |<br />

Components and click the Directives link next to the Optimizer+.<br />

Look for "zend_optimizerplus.revalidate_freq" and set the value to 30 (seconds).Zend Server is now<br />

set to check PHP file changes every 30 seconds.<br />

When to change: If you do not change PHP files often and some delay between file update and site<br />

update is acceptable, you may set it even higher.<br />

When not to change: If you have frequently changing files and you need the changes to take effect<br />

immediately.<br />

398

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!