Skip to content

Commit 4c2910c

Browse files
committed
updating cache
1 parent 94fc00c commit 4c2910c

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44

55
This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a CHANGELOG](https://keepachangelog.com/).
66

7+
## [10.4.1]
8+
9+
### Fixed
10+
11+
- Manifest combined cache name.
12+
713
## [10.4.0]
814

915
### Changed
@@ -868,6 +874,7 @@ Init setup
868874
- Gutenberg Blocks Registration.
869875
- Assets Manifest data.
870876

877+
[10.4.1]: https://github.com/infinum/eightshift-libs/compare/10.4.0...10.4.1
871878
[10.4.0]: https://github.com/infinum/eightshift-libs/compare/10.3.1...10.4.0
872879
[10.3.1]: https://github.com/infinum/eightshift-libs/compare/10.3.0...10.3.1
873880
[10.3.0]: https://github.com/infinum/eightshift-libs/compare/10.2.0...10.3.0

src/Helpers/CacheTrait.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,6 @@ trait CacheTrait
5353
*/
5454
private static $blocksNamespace = '';
5555

56-
/**
57-
* Cache file name.
58-
*
59-
* @var string
60-
*/
61-
private static $cacheFileName = '';
62-
6356
// -----------------------------------------------------
6457
// CACHE
6558
// -----------------------------------------------------
@@ -81,7 +74,6 @@ public static function setCacheDetails(
8174
self::$cacheBuilder = $cacheBuilder;
8275
self::$cacheName = $cacheName;
8376
self::$version = $version;
84-
self::$cacheFileName = \str_replace(' ', '', "{$cacheName}Manifests{$version}.json");
8577

8678
Helpers::setAllCache();
8779
}
@@ -102,7 +94,7 @@ public static function setAllCache(): void
10294
return;
10395
}
10496

105-
$cacheFile = Helpers::getEightshiftOutputPath(self::$cacheFileName);
97+
$cacheFile = Helpers::getEightshiftOutputPath('manifests.json');
10698

10799
if (\file_exists($cacheFile)) {
108100
$handle = \fopen($cacheFile, 'r');

src/Helpers/Helpers.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,8 @@ public static function getProjectPaths(string $type = '', array|string $suffix =
243243
return self::joinPaths([$projectRoot, ...$suffix]);
244244
case 'eightshift':
245245
return self::joinPaths([$root, 'eightshift', ...$suffix]);
246+
case 'eightshiftRoot':
247+
return self::joinPaths([$projectRoot, 'eightshift', ...$suffix]);
246248
case 'src':
247249
return self::joinPaths([$root, 'src', ...$suffix]);
248250
case 'public':

0 commit comments

Comments
 (0)