Skip to content

Commit fcf65cb

Browse files
committed
replace with newer logic get_tile
1 parent 503f166 commit fcf65cb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/cache_redis.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ static int _mapcache_cache_redis_get(mapcache_context *ctx, mapcache_cache *pcac
158158
mapcache_pooled_connection *pc;
159159
mapcache_cache_redis *cache = (mapcache_cache_redis*)pcache;
160160

161-
char* key = REDIS_GET_TILE_KEY(ctx, tile);
161+
char* key = mapcache_util_get_tile_key(ctx, tile, cache->key_template, " \r\n\t\f\e\a\b", "#");
162162
if(GC_HAS_ERROR(ctx)) {
163163
return MAPCACHE_FAILURE;
164164
}
@@ -213,7 +213,6 @@ static void _mapcache_cache_redis_set(mapcache_context *ctx, mapcache_cache *pca
213213
redisReply *reply;
214214
if(tile->tileset->auto_expire)
215215
expires = tile->tileset->auto_expire;
216-
cache = REDIS_GET_CACHE(tile);
217216
key = mapcache_util_get_tile_key(ctx, tile, cache->key_template," \r\n\t\f\e\a\b","#");
218217
GC_CHECK_ERROR(ctx);
219218

0 commit comments

Comments
 (0)