Skip to content

Commit 568b62a

Browse files
author
Bruno da Silva de Oliveira
committed
- Little bug where the memory cache was not being used
[SVN r19517]
1 parent da34e7f commit 568b62a

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

pyste/src/Pyste/CppParser.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,15 +156,14 @@ def CacheFileName(self, interface):
156156

157157

158158
def GetCache(self, header, interface, tail):
159-
if self.cache_dir is None:
160-
return None
161-
162159
key = (header, interface, tail)
163160
# try memory cache first
164161
if key in self.mem_cache:
165162
return self.mem_cache[key]
166163

167164
# get the cache from the disk
165+
if self.cache_dir is None:
166+
return None
168167
header = self.FindHeader(header)
169168
cache_file = self.CacheFileName(interface)
170169
if os.path.isfile(cache_file):

0 commit comments

Comments
 (0)