Trying to implement oneboxes (see #1341556: Add Support for Oneboxes)...
I need Google Appliance to implement a static response cache for easy access to the search results outside of the google_appliance_search_view context.
Patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | google_appliance-static_response_cache-1566284-3.patch | 7.57 KB | iamEAP |
| google_appliance-static_response_cache-0-0.patch | 959 bytes | iamEAP |
Comments
Comment #1
mpgeek commentedCommitted to dev: http://drupalcode.org/project/google_appliance.git/commit/cfa6dc1.
Comment #2
mpgeek commentedComment #3
iamEAP commentedI was basing my code off of the 6.x version of this module (which itself was based on an old version of the ApacheSolr module). I just discovered drupal_static(), which was introduced in D7.
No use in doing our own special thing.
Patch attached. It looks like a significant change, but all I'm doing is wrapping the existing code with...
Other modules could get at the data by calling &drupal_static('google_appliance_parse_device_response_xml');
Comment #4
mpgeek commentedCommitted to dev: http://drupalcode.org/project/google_appliance.git/commit/695c260. Huzzah for D7 design patterns in D7 modules.
Comment #5
mpgeek commentedImplemented. See 7.x-1.7.
Comment #6
mpgeek commented