Forums / Suggestions / Some static cache issues

Some static cache issues

Author Message

Vitaly Puzrin

Monday 10 April 2006 12:21:42 am

1. As far as I know, static cache currently make cache only for main layout. What about add cacheing ofr other layouts too (for example, for printable version) ? That should help to speed up site when during search bots scan.

Is it possible to add more sttings to config? Those sould differ from setting of main layout. For example, I have printable vertion for all articles, but don't wish to abouse EZ with other unnecessary requests when makestaticcache.php works.

2. Another idea is to add matching allowed classes to static cache. Example:

I have folder with 1000 links (in links catalog). Folder template shows all links together.

If you try to look a single link directly (in full view), then overriden templete generates 301 redirect (to prevent bots scan next time).

But when I execute makestaticcache.php, it scans not only the folder, but each of 1000 links. That produce a lot of unnesessary loads.

So, the idea is to exlude sobe objects from static cache, dependinr on their class.

Betsy Gamrat

Tuesday 11 April 2006 4:20:33 am

You can use <i>PHP's readfile</i> function to extract templates with alot of content and deliver the page using the PHP output instead of eZ. I have used this approach to allow eZ to support very high traffic sites - with burst traffic that all arrives in a short time span.

This article describes the approach:

http://www.ddj.com/documents/s=9938/ddj0601g/0601g.html

Demonstration code is at:

http://wirehopper.com/php/preprocess.php?url=wirehopper.com

Vitaly Puzrin

Wednesday 12 April 2006 1:56:48 am

I don't need preprocessor. Static cache feature compleately satisfy my needs.

The idea is to speed up cache building by filtering unnecessary classes (or by selecting allowed ones). That will greately improve performance in some cases.