Verified Commit c15ec06a authored by Aral Balkan's avatar Aral Balkan
Browse files

Commented out some log statements

parent bcf09db0
......@@ -66,7 +66,7 @@ addPartials = (template) ->
cachedTemplate = templateCache[templateHash]
if cachedTemplate != undefined
console.log "Using template from cache."
# console.log "Using template from cache."
return cachedTemplate
# Template not found in cache. Try and render partials.
......@@ -104,7 +104,8 @@ addPartials = (template) ->
render = (template, data) ->
a = new Date()
# Debug: timing.
# startTime = new Date()
#
# To use document cache, explicitly set it on by passing
......@@ -121,8 +122,8 @@ render = (template, data) ->
cachedDocument = documentCache[documentHash]
if cachedDocument != undefined
console.log "Returning document from cache."
console.log "Took: #{(new Date() - a)}"
# console.log "Returning document from cache."
# console.log "Took: #{(new Date() - startTime)}"
return cachedDocument
# Add partials to template
......@@ -228,7 +229,8 @@ render = (template, data) ->
# Save the rendered document (for this data) in the cache.
documentCache[documentHash] = html
console.log "Took: #{(new Date() - a)} ms."
# Debug: timing.
# console.log "Took: #{(new Date() - startTime)} ms."
return html
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment