Skip to content

Commit

Permalink
Merge pull request #14: Fixed "new cache states are not correctly mer…
Browse files Browse the repository at this point in the history
…ged" bug
  • Loading branch information
WalterWoshid authored Nov 1, 2023
2 parents ca49c58 + d9b1e22 commit d44dc97
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
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

0 comments on commit d44dc97

Please sign in to comment.