There is not need to request the luke info every time we do a search.

We should implement cache_set/get in Drupal_ApacheSolrPHPClient in getFields().

Comments

pwolanin’s picture

Status: Active » Needs review
StatusFileSize
new4.08 KB
pwolanin’s picture

StatusFileSize
new2.27 KB

better- let's just clear the cache when we commit, since there's basically a 1-to-1 of when we commit and clear the cache.

pwolanin’s picture

Assigned: JacobSingh » pwolanin
StatusFileSize
new2.85 KB

improved code comments

paul.lovvik’s picture

Assigned: pwolanin » Unassigned
Status: Needs review » Reviewed & tested by the community

Reviewed. This looks great!

pwolanin’s picture

Version: 6.x-1.x-dev » 5.x-1.x-dev
Assigned: Unassigned » pwolanin
Status: Reviewed & tested by the community » Patch (to be ported)

committed to 6.x

JacobSingh’s picture

Yeah, looks fine to me. I would make it go stale after some point. Perhaps just clearing on cron is good enough. I don't like the idea of not clearing unless there is a commit (but I'm not saying we have to change it now). There are two reasons:

1. There is another site updating the same index.
2. We may remove commits from the client side.

Best,
Jacob

pwolanin’s picture

Status: Patch (to be ported) » Active

@Jacob - sure we could add clearing on every cron run too.

pwolanin’s picture

Version: 5.x-1.x-dev » 6.x-1.x-dev
JacobSingh’s picture

Status: Active » Patch (to be ported)

It appears this is already done.

pwolanin’s picture

Version: 6.x-1.x-dev » 5.x-1.x-dev

yes, I think 6.x is all done

pwolanin’s picture

Version: 5.x-1.x-dev » 6.x-1.x-dev
Status: Patch (to be ported) » Closed (fixed)