Share » Forums » Setup & design » Caching and variables.

Caching and variables.

Caching and variables.

Thursday 16 March 2006 8:26:55 am - 1 reply

Author Message

Betsy Gamrat

Thursday 16 March 2006 9:08:05 am

The key is in the <b>keys</b>.

I like to use the node id in the keys to ensure the content is properly cached.

For example:

keys=array("details",$node.node_id)

I disable ViewCaching and rely on the template caching.

I've never tried to preserve variable values between template accesses.

There are also additional static caching features in eZ.

If you need to support a very high level of traffic, you can do several things:

Preprocess the home page (demo at http://wirehopper.com/php/preprocess.php, article in Dr. Dobb's Journal Jan 2006)

Modify pagelayout.tpl to support a very streamlined delivery of content and extract it using a cron job.

Use the CMS to build PHP. That way, the content is still dynamic, but it is lightning fast.

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu