30.07.2012 Views

Reference Guide

Reference Guide

Reference Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Blacklisting Files<br />

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

If none of the alternatives (described above) are suitable, or if the file meets one of the criteria for<br />

blacklisting a file, use the following procedure to create a blacklist file that contains the file names of the<br />

files you do not want to be byte-code cached by Optimizer+.<br />

To create a blacklist file:<br />

1. Create a .txt file using a text editor.<br />

2. Write a list of the file names to blacklist (i.e., ignored by the Optimizer+).<br />

List each file name in a new line.<br />

3. In Server Setup | Components, verify that the "Zend Optimizer+" component is set to<br />

'On'.<br />

4. Click the "Configure" link in the directives column to display the list of Optimizer+<br />

directives.<br />

5. Locate the directive: zend_optimizerplus.blacklist_filename and specify the full path to<br />

the file location.<br />

The files in the blacklist are now ignored by Optimizer+.<br />

Optimizer+ Duplicate Functions Fix<br />

In situations where certain functions were (or were not) defined, some PHP code produces different<br />

opcodes, depending on the circumstances. This causes a discrepancy for the Optimizer+ in the situation<br />

where the Optimizer+ caches one versionand a sequence of events arises that requires a different<br />

function. If the discrepancy is not addressed, the script stops working and raises a "duplicate functions"<br />

error.<br />

To maintain proper performance in these and similar situations, activate the zend_optimizerplus.dups_fix<br />

parameter. This parameter shuts down the Optimizer+ duplicate function check to prevent these errors<br />

from occurring.<br />

This parameter can be defined in Server Setup | Directives by searching for<br />

zend_optimizerplus.dups_fix.<br />

97

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

Saved successfully!

Ooh no, something went wrong!