Fixed if statement.
Merge branch 'custom-caching'
Added default nocache option to all populate queries.