0

How would you cache GeoKit requests?

This does not work for me...

Geokit::Geocoders::query_cache         = true
Geokit::Geocoders::query_cache_max_age = 86400 # 1 day in seconds

URL: http://github.com/seebq/geokit-gem

xpepermint
  • 35,055
  • 30
  • 109
  • 163

2 Answers2

0

I'm not sure I understand the question, so I'll just throw an answer out there:

Do you mean something like storing a hash of location/coordinates in memory, or in the database, for instance?

Trevoke
  • 4,115
  • 1
  • 27
  • 48
  • Geokit::Geocoders::query_cache = true Geokit::Geocoders::query_cache_max_age = 86400 # 1 day in seconds this is not working for me... so I'm searching for an answer... – xpepermint Feb 01 '10 at 15:43
0

Make sure /tmp is writable from your server process.

Note: /tmp must be writable in order to use the query caching functionality.

via Seebq's geokit gem. Make sure you are using Seebq's gem, because it is a fork of Andre's geokit gem to add cache support.

Brian Jordan
  • 2,377
  • 3
  • 21
  • 29