Skip to content

Commit

Permalink
Fix a cache bug
Browse files Browse the repository at this point in the history
  • Loading branch information
enums committed Jun 18, 2018
1 parent 05b4304 commit c5b1a31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Pjango/Model/PCModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ open class PCModel: PCObject, PCViewable {
}
let nowTime = Date.init()
let records: [PCDataBaseRecord]
if ext?.useCache == false,
if ext?.useCache != true,
let cacheTime = cacheTime,
let cache = _pjango_core_model_cache[_pjango_core_class_name],
let lastCacheTime = _pjango_core_model_cache_time[_pjango_core_class_name],
Expand Down

0 comments on commit c5b1a31

Please sign in to comment.