hi,

i want to improve my search module. when user search a record based on keyword, the records will retrive from the database. then the result will show. now, suppose another user search a record based on same keyword, then the same process will repeat. But my need is,
when user search the record based on keyword, the record will retive from database, and show to user and then it should store as cache in server. if another user search a record based on same keyword, then i have to retive the record from cache of server instead of datebase. i hope it will improve the search module when datebase has huge amounts of datas. please let me know if any other modules in drupal. i hope good responce from your side.

Comments

david strauss’s picture

Title: Cacheing Module » Cache search results
Project: Drupal.org site moderators » Drupal core
Version: » 7.x-dev
Component: Textual improvements » search.module
Category: task » feature

Moving to the correct queue. Choosing version 7.x-dev because it would be the first place to implement search result caching code. Then, it could be back-ported to run on Drupal.org, possibly.

robertdouglass’s picture

There's a flawed patch here: http://drupal.org/node/133902

Caching built nodes would also be a huge boost for search results.

The advcache module has a patch for caching search results in D5: http://drupal.org/node/133902

robertdouglass’s picture

Node access is problematic in cases like this. If you cache the administrator's search results you can't show them to anonymous.

david strauss’s picture

@robertDouglass: We can probably cache using the roles in the key. While that theoretically requires 2^n (where n is the number of roles) as cache entries for each search, the realistic combinations of roles are far more limited.

robertdouglass’s picture

David, yes, I've even got a nice function that helps with this in the advcache module. However there are many other types of access controls for nodes that we can't take account of. We'd literally need to cache per user, which is useless. One solution would be to offer caching only when the node_access table is in its original state. That would certainly help a large number of sites (including d.o.)

jhodgdon’s picture

Version: 7.x-dev » 8.x-dev

This didn't make it into Drupal 7. Bumping to Drupal 8.

jhodgdon’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)