Skip to content

Commit 9ebde41

Browse files
Merge branch '7.4' into 8.0
* 7.4: [FrameworkBundle] Change HttpCache directory to use new getShareDir [Runtime] Expose `project_dir` as `APP_PROJECT_DIR` env var
2 parents c5897f8 + fc2a438 commit 9ebde41

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

HttpCache/HttpCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,6 @@ protected function createSurrogate(): SurrogateInterface
8383

8484
protected function createStore(): StoreInterface
8585
{
86-
return $this->store ?? new Store($this->cacheDir ?: $this->kernel->getCacheDir().'/http_cache');
86+
return $this->store ?? new Store($this->cacheDir ?: $this->kernel->getShareDir().'/http_cache');
8787
}
8888
}

Resources/config/services.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class_exists(WorkflowEvents::class) ? WorkflowEvents::ALIASES : []
115115

116116
->set('http_cache.store', Store::class)
117117
->args([
118-
param('kernel.cache_dir').'/http_cache',
118+
param('kernel.share_dir').'/http_cache',
119119
])
120120
->alias(StoreInterface::class, 'http_cache.store')
121121

0 commit comments

Comments
 (0)