1 diff --git src/pcache1.c src/pcache1.c
2 index ad44395..e4d0705 100644
5 @@ -549,10 +549,12 @@ static sqlite3_pcache *pcache1Create(int szPage, int bPurgeable){
6 int sz; /* Bytes of memory required to allocate the new cache */
9 - ** The seperateCache variable is true if each PCache has its own private
10 + ** The separateCache variable is true if each PCache has its own private
11 ** PGroup. In other words, separateCache is true for mode (1) where no
12 ** mutexing is required.
14 + ** * Always use separate caches (mode-1) if SQLITE_SEPARATE_CACHE_POOLS
16 ** * Always use a unified cache (mode-2) if ENABLE_MEMORY_MANAGEMENT
18 ** * Always use a unified cache in single-threaded applications
19 @@ -560,7 +562,9 @@ static sqlite3_pcache *pcache1Create(int szPage, int bPurgeable){
20 ** * Otherwise (if multi-threaded and ENABLE_MEMORY_MANAGEMENT is off)
21 ** use separate caches (mode-1)
23 -#if defined(SQLITE_ENABLE_MEMORY_MANAGEMENT) || SQLITE_THREADSAFE==0
24 +#ifdef SQLITE_SEPARATE_CACHE_POOLS
25 + const int separateCache = 1;
26 +#elif defined(SQLITE_ENABLE_MEMORY_MANAGEMENT) || SQLITE_THREADSAFE==0
27 const int separateCache = 0;
29 int separateCache = sqlite3GlobalConfig.bCoreMutex>0;