Caching and search

Caching and search

Wednesday 10 December 2003 2:48:23 am - 3 replies

Modified on Wednesday 10 December 2003 2:50:53 am by Valentin Svelland

Author Message

Valentin Svelland

Wednesday 10 December 2003 7:27:58 am

Found out that search works again when site.ini.append.php's template cache is disabled: TemplateCache=disabled

But I guess my site runs slower with this cache disabled, so I'm not quite sure what to do...

Nathaniel Fitzgerald-Hood

Wednesday 10 December 2003 10:09:33 pm

I had a similar problem with caching and results from folder lists on the several pagelayout pages - I added several keys values ie:

{cache-block keys=array( edca_homepage, $module_result.node_id}
....
{/cache-block}

which fixed the problem quite nicely. Parts of the search keywords as the key but I don't know how useful that would be cause they'll vary (then again they may not - if people generally search for the same things it'll make things nice and quick).

- Nathaniel

Valentin Svelland

Thursday 11 December 2003 12:21:01 am

Thanks for your answer.

I'm sure this could work, and I guess I'll try it out - but I can't understand why these keys should be necessary as the {$module_result.content} is outside my cache-blocks..

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.