Skip to content

Fixed "new cache states are not correctly merged" bug #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ composer require okapi/code-transformer
- [Limitations](#limitations)
- [How it works](#how-it-works)
- [Testing](#testing)
- [TODO](#todo)



Expand Down Expand Up @@ -332,18 +331,6 @@ Give a ⭐ if this project helped you!



## TODO

- Add support for Production/Development environments:
- Production: Cache will not be checked for updates (better performance)
- Development: Cache will be checked for updates (better debugging experience)

- Create a flowchart (WIP)

- Cache lifetime



## 🙏 Thanks

- Big thanks to [lisachenko](https://github.com/lisachenko) for their pioneering
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Cache/CacheStateManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ private function saveCacheState(): void
// Create the cache state array
$cacheStateArray = array_map(
fn (CacheState $cacheState) => $cacheState->toArray(),
array_merge($this->newCacheState, $this->cacheState),
array_merge($this->cacheState, $this->newCacheState),
);

// Set the hash
Expand Down