mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #452] [Issue]: Caching appears broken #200
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#200
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @xDanteMD on GitHub (May 6, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/452
Description
DeepSeek's native prefix caching (the
cached_tokensmetric in API responses) stopped producing cache hits after upgrading from v1.5.7 to v1.5.8. Rolling back to v1.5.7 restores normal cache behavior (~80% cache hit rate on multi-turn conversations).Steps to Reproduce
[debug] Token usage — cached:Expected
cached: ~7000-8000(majority of prompt tokens served from cache on turn 2+)Actual (v1.5.8)
cached: 0on every turn, even in brand-new chats with no lorebooks activeSometimes cached:128 (that SPECIFIC number, if at all, on few attempts)
Confirmed Working
git checkout v1.5.7— caching immediately returns to normalEnvironment
Notes
Logs, screenshots, or video
Additional context
Fresh install of 1.5.8 was reattempted prior to report. OpenCode (Deepseek V4 Pro via API) was used to analyze the application and also wrote this report (Because I'm too dumb to know how all this works, but it spent a good amount of time trying to track down the issue and about 300k tokens)
Confirmed it's not a machine-specific issue enjoying 70M tokens of RP on Deepseek prior to this occurence - worked flawlessly despite chaotic testing in multiple scenarios (lorebooks, agents, pushing buttons), correct caching each time.
Confirmed not Deepseek specific via Platform (my BYOK client as well as OpenCode cached just fine, as well as past reverting to 1.5.7).
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@xDanteMD commented on GitHub (May 6, 2026):
https://github.com/deepseek-ai/DeepSeek-V3/issues/1261
Appears to be a known issue and is inconsistent, on their end. Mea culpa.