Skip to content

Commit 7668244

Browse files
committed
Trivial docs and config changes per review
1 parent 40a377f commit 7668244

3 files changed

Lines changed: 6 additions & 10 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
}
2121
},
2222
"require": {
23-
"php": "^7.2 || ^8.0",
23+
"php": ">=7.2",
2424
"league/flysystem": "^2.0",
2525
"symfony/config": "^4.2|^5.0",
2626
"symfony/http-kernel": "^4.2|^5.0",

docs/4-caching-metadata-in-symfony-cache.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,9 @@ involves an additional overhead on top of the classical slowness of I/O.
1010
When your application needs to scale, you may need to cache metadata in order to
1111
improve performances on this level. To do this, you can use the `cache` adapter.
1212

13-
> *Note:* this adapter caches just the metadata of existing files. This keeps the cache
13+
> *Note:* this adapter only caches the metadata of existing files, not their content. This keeps the cache
1414
> small enough to be beneficial and covers all the file system inspection operations.
1515
16-
> *Note:* Earlier versions used different cache driver that was memory heave on systems
17-
> with large number of files. This version suggests lighter version that caches just
18-
> files metadata.
19-
2016
### Installation
2117

2218
```
@@ -26,7 +22,7 @@ composer require lustmored/flysystem-v2-simple-cache-adapter
2622
### Usage
2723

2824
The cache adapter works using a source storage (from which it will read the uncached data)
29-
and any [PSR-6 cache item pool interface](https://www.php-fig.org/psr/psr-6/).
25+
and a [Symfony cache pool](https://symfony.com/doc/current/reference/configuration/framework.html#pools).
3026

3127
Most of the time you are only going to need one of two possibilities:
3228

tests/Adapter/Builder/LocalAdapterDefinitionBuilderTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ public function testOptionsBehavior()
8585
{
8686
$permissions = [
8787
'file' => [
88-
'public' => 0666,
89-
'private' => 0644,
88+
'public' => 0755,
89+
'private' => 0755,
9090
],
9191
'dir' => [
92-
'public' => 0777,
92+
'public' => 0755,
9393
'private' => 0755,
9494
],
9595
];

0 commit comments

Comments
 (0)