Homec4science

WebSearch: re-enabled basic search cache

Authored by Tibor Simko <tibor.simko@cern.ch> on Feb 16 2009, 12:09.

Description

WebSearch: re-enabled basic search cache

  • Enabled the search results cache back again. It is used now for simple search queries only and for search stages 1-3 only. In order to plug the cache for more search stages, or for advanced search queries too, a small refactoring of perform_request_search() would be profitable first.
  • Changed collection reclist, I18N name and field I18N name caches to use the DataCacher class. Cleaned away unused caching functions.
  • Optimized retrieval of collection and field I18N names in search engine's HTML output, speeding up search engine considerably if one has hundreds of collections defined.
  • Changed DataCacher API (better names). Exposes cache internals, which is not too ideal. We may want to create special list/dict/lazy data cacher subclasses one day.
  • Updated DataCacher clients as per the API change.

Details

Committed
Tibor Simko <tibor.simko@cern.ch>Feb 17 2009, 15:40
Parents
R3600:9776e1b74da7: WebStyle: new CFG_WEBSTYLE_INSPECT_TEMPLATES
Branches
Unknown
Tags
Unknown

Event Timeline

Tibor Simko <tibor.simko@cern.ch> committed R3600:6ac9b81bbfbc: WebSearch: re-enabled basic search cache (authored by Tibor Simko <tibor.simko@cern.ch>).Feb 17 2009, 15:40