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.

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

This sets the Page Cache to cache content only when the _SESSION parameter<br />

'username' is not set. Subsequently, users that do have the _SESSION<br />

'username' set are presented with a live version of the page.<br />

If necessary, we can extend this limit to include all users whose 'username'<br />

_SESSION parameter equals 'guest' as follows:<br />

Note:<br />

Square brackets are not required for non-nested variables when referring to superglobal<br />

variables in caching conditions. If you do not use square brackets, the system adds them<br />

automatically after you click "Save".<br />

This completes creating a Cache Rule.<br />

Multiple Versions of Cached Pages<br />

1. Choose to create compressed cache copies.<br />

This option allows you to disable the creation of a gzip-compressed version of each<br />

cached page, as long as it is larger than 1KB. You should normally leave this option<br />

checked.<br />

By default, Zend Server creates a compressed version of each cached page and stores it<br />

alongside the original version. This compressed version is sent to browsers that support<br />

gzip compression (all modern browsers support this) instead of the uncompressed<br />

version. For typical HTML, XML or other text-based outputs, using the compressed<br />

version can save about 90% of the bandwidth and improve page load times. In addition,<br />

the compressed copy is saved in your cache so the CPU-intensive process of real-time<br />

compression is not required. However, if you are caching a PHP script that outputs binary<br />

data (for example JPEG or PNG images, ZIP or EXE files, PDFs, etc.) which cannot be<br />

further compressed, you should un-check this option to avoid redundant processing. For<br />

more information, see: Page Cache.<br />

2. Click to create different cached copies according to specific<br />

values. This creates more than one version of the page in the cache, based on specific<br />

conditions.<br />

149

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

Saved successfully!

Ooh no, something went wrong!