Skip to content

Commit

Permalink
fix: fix cache cleaner paths
Browse files Browse the repository at this point in the history
  • Loading branch information
123FLO321 committed Dec 20, 2021
1 parent 735e994 commit f51aa69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/SwiftTileserverCache/cachecleaners.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ func cachecleaners(_ app: Application) throws {
)

_ = CacheCleaner(
folder: "Cache/Tile",
folder: "Cache/Static",
maxAgeMinutes: UInt32(Environment.get("STATIC_CACHE_MAX_AGE_MINUTES") ?? ""),
clearDelaySeconds: UInt32(Environment.get("STATIC_CACHE_DELAY_SECONDS") ?? "") ?? 900
)

_ = CacheCleaner(
folder: "Cache/Tile",
folder: "Cache/StaticMulti",
maxAgeMinutes: UInt32(Environment.get("STATIC_MUTLI_CACHE_MAX_AGE_MINUTES") ?? ""),
clearDelaySeconds: UInt32(Environment.get("STATIC_MULTI_CACHE_DELAY_SECONDS") ?? "") ?? 900
)

_ = CacheCleaner(
folder: "Cache/Tile",
folder: "Cache/Marker",
maxAgeMinutes: UInt32(Environment.get("MARKER_CACHE_MAX_AGE_MINUTES") ?? ""),
clearDelaySeconds: UInt32(Environment.get("MARKER_CACHE_DELAY_SECONDS") ?? "") ?? 900
)
Expand Down

0 comments on commit f51aa69

Please sign in to comment.