Dynamic Content Caching

The concept behind Dynamic Content Caching is to store results of a first execution of a dynamically generated Web page. In this way, further requests made to the same page, will go to the Cache. Consequently, avoiding the overhead incurred by executing an application that renders output that does not change.

 

Zend Platform offers two ways to Content Cache files.

 

There are two caching conditions that can be applied to files:

 

Full Page Content Caching

Default Full Page Content Caching settings are applied to all files marked as cached in: Performance | Settings and go to the Dynamic Content Caching section of the Settings screen.

 

The content caching options are as follows:

Dynamic Content Settings

The lifetime and conditions settings in the Settings tab are default values. These settings can be modified per file or per directory in the File View workspace.

 

Dynamic Content Caching Settings are as follows:

 

Note:

The Cache Cleaner is directly related to the directive zend_accelerator.cache_cleaner_freq that can be defined in the Configure PHP Settings screen. This directive defines when expired cache files are removed from the cache.

Back to content caching options

Default Caching Conditions

By default, Dynamic Content Caching, caches each request based on its full URL (ALLGET). You can condition the settings to be more general or more specific, as desired.

 

To change default caching conditions:

  1. Go to Performance | Settings and go to the Dynamic Content Caching section of the settings screen. Select, Change Default Conditions to open the Define Default Caching Conditions dialog.

  2. The default caching condition is ALLGET, which means that the entire GET string is used to identify a cached item. The GET string includes everything that appears after the question mark in a URL. (The ALLGET variables can be found in the $_GET PHP array as well).

 

The following actions and conditions can be applied to the Default Caching settings:

 

When all configurations are completed, press Save to save and close the dialog. Modified settings will be immediately displayed in the Settings tab. Click “Apply Changes” and restart the Web server to activate the new caching conditions. The message will remain on the screen until the server is actually restarted.

 

Note:

Caching conditions may also apply to Variables stored in an Array.

Back to content caching options

Default Dynamic Caching Condition Parameters

The following list includes a description each of the applicable parameters.

 

 

Note:

It is mandatory to choose at least one Dependency.

Back to content caching options

Related Topics