Remove debug code.
This commit is contained in:
parent
630831f772
commit
e520df80da
1 changed files with 0 additions and 2 deletions
|
|
@ -25,10 +25,8 @@ proc invalidateAll*(cache: CacheHolder) =
|
||||||
template get*(cache: CacheHolder, name: string, grabValue: expr): expr =
|
template get*(cache: CacheHolder, name: string, grabValue: expr): expr =
|
||||||
## Check to see if the cache contains value for ``name``. If it does and the
|
## Check to see if the cache contains value for ``name``. If it does and the
|
||||||
## cache is valid then doesn't recalculate it but returns the cached version.
|
## cache is valid then doesn't recalculate it but returns the cached version.
|
||||||
echo(cache.caches)
|
|
||||||
mixin normalizePath
|
mixin normalizePath
|
||||||
let nName = name.normalizePath()
|
let nName = name.normalizePath()
|
||||||
if not (cache.caches.hasKey(nName) and cache.caches[nName].valid):
|
if not (cache.caches.hasKey(nName) and cache.caches[nName].valid):
|
||||||
echo "Resetting cache."
|
|
||||||
cache.caches[nName] = CacheInfo(valid: true, value: grabValue)
|
cache.caches[nName] = CacheInfo(valid: true, value: grabValue)
|
||||||
cache.caches[nName].value
|
cache.caches[nName].value
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue