From 6d0b01c5fb1e0740ea48566fea200f03b979c52c Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Mon, 14 Dec 2015 11:16:01 -0800 Subject: [core] Make it possible to limit the size of the SQLite cache --- platform/linux/main.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'platform/linux/main.cpp') diff --git a/platform/linux/main.cpp b/platform/linux/main.cpp index bb571a0093..45f2b8defa 100644 --- a/platform/linux/main.cpp +++ b/platform/linux/main.cpp @@ -107,6 +107,9 @@ int main(int argc, char *argv[]) { view = std::make_unique(fullscreen, benchmark); mbgl::SQLiteCache cache("/tmp/mbgl-cache.db"); + cache.setMaximumCacheEntrySize(1 * 1024 * 1024); // 1 MB + cache.setMaximumCacheSize(50 * 1024 * 1024); // 50 MB + mbgl::DefaultFileSource fileSource(&cache); // Set access token if present -- cgit v1.2.1