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 />

150<br />

Example:<br />

The following example demonstrates how to create different copies of cached information,<br />

based on the _GET parameter 'language'.<br />

This sets Caching to create a different copy for each different value of _GET 'language' (for<br />

the content that was cached based on the rules defined in steps 1 and 2).<br />

This example demonstrates how to use Caching for multilingual pages that handle the same<br />

content in different languages.<br />

Caching Duration<br />

Set the cache duration in seconds. After that time, the cache is refreshed and a newer version is<br />

created.<br />

For example, 600 seconds is ten minutes.<br />

This completes the last step of creating a Cache Rule.<br />

Scroll to the bottom of the page (Rule Management | Caching) and click "Save" to save the rule<br />

information and "Restart PHP" to activate the rule.<br />

To edit a rule, go to Rule Management | Caching and click Edit next to the rule you want to edit.<br />

To clear the information in the cache for a specific rule, go to Rule Management | Caching and click<br />

Clear next to the rule you want to edit.<br />

Creating a Copy of a Rule<br />

The following procedure describes how to create a new rule based on an already existing rule. This<br />

option can be used when a new rule with settings similar to an existing rule needs to be created such as<br />

for different URLs with the same caching requirements.<br />

To copy a Cache rule:<br />

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

2. Double click on the rule name on which you want to base the new rule.<br />

3. Change the settings.<br />

4. Click "Save As"<br />

A new Dialog will open prompting you to enter a new name for the rule.<br />

5. Enter a name and click "Save".<br />

A new rule will be added to Rule Management | Caching.

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

Saved successfully!

Ooh no, something went wrong!