Cache Luke information on cron

JacobSingh - December 1, 2008 - 15:04
Project:Apache Solr Search Integration
Version:6.x-1.x-dev
Component:Code
Category:task
Priority:critical
Assigned:pwolanin
Status:closed
Description

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().

#1

pwolanin - December 1, 2008 - 16:42
Status:active» needs review
AttachmentSize
cache-luke-341175-1.patch 4.08 KB

#2

pwolanin - December 2, 2008 - 18:54

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.

AttachmentSize
cache-luke-341175-2.patch 2.27 KB

#3

pwolanin - December 2, 2008 - 20:10
Assigned to:JacobSingh» pwolanin

improved code comments

AttachmentSize
cache-luke-341175-3.patch 2.85 KB

#4

paul.lovvik - December 2, 2008 - 20:50
Assigned to:pwolanin» Anonymous
Status:needs review» reviewed & tested by the community

Reviewed. This looks great!

#5

pwolanin - December 2, 2008 - 21:15
Version:6.x-1.x-dev» 5.x-1.x-dev
Assigned to:Anonymous» pwolanin
Status:reviewed & tested by the community» patch (to be ported)

committed to 6.x

#6

JacobSingh - December 3, 2008 - 02:06

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

#7

pwolanin - December 3, 2008 - 13:51
Status:patch (to be ported)» active

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

#8

pwolanin - December 3, 2008 - 13:51
Version:5.x-1.x-dev» 6.x-1.x-dev

#9

JacobSingh - December 10, 2008 - 09:55
Status:active» patch (to be ported)

It appears this is already done.

#10

pwolanin - December 10, 2008 - 12:52
Version:6.x-1.x-dev» 5.x-1.x-dev

yes, I think 6.x is all done

#11

pwolanin - January 18, 2009 - 03:11
Version:5.x-1.x-dev» 6.x-1.x-dev
Status:patch (to be ported)» closed
 
 

Drupal is a registered trademark of Dries Buytaert.