mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
cache ro+repo or just ro if no repo
This commit is contained in:
parent
b216d57107
commit
fe2e36afda
1 changed files with 5 additions and 3 deletions
|
@ -31,10 +31,12 @@ class ChatChunks:
|
|||
else:
|
||||
self.add_cache_control(self.system)
|
||||
|
||||
if self.readonly_files:
|
||||
self.add_cache_control(self.readonly_files)
|
||||
else:
|
||||
if self.repo:
|
||||
# this will mark both the readonly_files and repomap chunk as cacheable
|
||||
self.add_cache_control(self.repo)
|
||||
else:
|
||||
# otherwise, just cache readonly_files if there are any
|
||||
self.add_cache_control(self.readonly_files)
|
||||
|
||||
self.add_cache_control(self.chat_files)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue