Skip to content

Commit

Permalink
log retrieved cached response #28
Browse files Browse the repository at this point in the history
  • Loading branch information
nliautaud committed Oct 4, 2017
1 parent 1d4d3e1 commit 9efb419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/tmdb.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ TMDB.get = function get( path, args ) {
},
cached = TMDB.cache[ query.url ]
if ( cached && cached.age < 30 ) {
log( 'TMDb get', query.name, 'from cache' )
log( 'TMDb get', query.name, 'from cache', cached.response )
return Promise.resolve( cached.response )
}
return TMDB.call( query )
Expand Down

0 comments on commit 9efb419

Please sign in to comment.