Skip to content

Commit d44dc97

Browse files
authored
Merge pull request #14: Fixed "new cache states are not correctly merged" bug
2 parents ca49c58 + d9b1e22 commit d44dc97

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

README.md

-13
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ composer require okapi/code-transformer
6868
- [Limitations](#limitations)
6969
- [How it works](#how-it-works)
7070
- [Testing](#testing)
71-
- [TODO](#todo)
7271

7372

7473

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

333332

334333

335-
## TODO
336-
337-
- Add support for Production/Development environments:
338-
- Production: Cache will not be checked for updates (better performance)
339-
- Development: Cache will be checked for updates (better debugging experience)
340-
341-
- Create a flowchart (WIP)
342-
343-
- Cache lifetime
344-
345-
346-
347334
## 🙏 Thanks
348335

349336
- Big thanks to [lisachenko](https://github.com/lisachenko) for their pioneering

src/Core/Cache/CacheStateManager.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ private function saveCacheState(): void
185185
// Create the cache state array
186186
$cacheStateArray = array_map(
187187
fn (CacheState $cacheState) => $cacheState->toArray(),
188-
array_merge($this->newCacheState, $this->cacheState),
188+
array_merge($this->cacheState, $this->newCacheState),
189189
);
190190

191191
// Set the hash

0 commit comments

Comments
 (0)