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.

Working with Caching (Page)<br />

To access the Caching page, go to Rule Management | Caching.<br />

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

The Page Cache is used to speed-up recurring executions of PHP scripts in your application. This is<br />

achieved by caching the PHP output (HTML) for specific URLs on first execution, to reuse the cached<br />

data for subsequent calls.<br />

Cache behavior is defined using a flexible rule system that allows you to maintain the dynamic<br />

capabilities of your applications.<br />

As opposed to other caching alternatives (Zend Server Data Cache and Zend Framework Zend Cache),<br />

the Zend Server Cache does not require any code changes and can be easily applied to existing<br />

applications. Moreover, while other caching solutions still run some code on recurring executions, the<br />

cache does not run any code to display the cached content, which results in improved performance.<br />

Creating URL cache rules with Zend Server is a two-step process. In step one, you define the basic URL<br />

and conditions to apply. In step two, you define the cache duration and output options.<br />

The following procedure describes how to create a cache rule. Click here to see how to create a copy of a<br />

cache rule<br />

To create a Cache rule:<br />

1. Go to Rule Management | Caching<br />

2. Click to open the New Rule page.<br />

3. Name the rule.<br />

Make sure the name is descriptive and easy to remember: This name will appear in the<br />

main Caching page.<br />

4. Enter the information according to the following steps and click Save to apply the<br />

changes:<br />

Caching Conditions<br />

1. Use the fields to define the URL that you want to cache.<br />

A URL can be an exact URL or a representation of a pattern of URLs using Regular<br />

Expressions (external link), which can be either case sensitive or case insensitive.<br />

Example:<br />

Exact URL<br />

147

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

Saved successfully!

Ooh no, something went wrong!