Skip to content

Commit

Permalink
Fix model cache problem
Browse files Browse the repository at this point in the history
  • Loading branch information
enums committed Jul 4, 2019
1 parent 3a99dc3 commit 6a58ed0
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 @@ -95,7 +95,7 @@ open class PCModel: PCObject, PCViewable {
}
let nowTime = Date.init()
let records: [PCDataBaseRecord]
if ext?.useCache != true,
if ext == nil,
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 6a58ed0

Please sign in to comment.