You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/CachePlugin.php
+10-7Lines changed: 10 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ final class CachePlugin implements Plugin
35
35
private$config;
36
36
37
37
/**
38
-
* Cache directives indicating if a response can be cached.
38
+
* Cache directives indicating if a response can not be cached.
39
39
*
40
40
* @var array
41
41
*/
@@ -46,7 +46,8 @@ final class CachePlugin implements Plugin
46
46
* @param StreamFactory $streamFactory
47
47
* @param array $config {
48
48
*
49
-
* @var bool $respect_cache_headers Whether to look at the cache directives or ignore them. This option is deprecated, use `respect_response_cache_directives` instead
49
+
* @var bool $respect_cache_headers Whether to look at the cache directives or ignore them. This option is
50
+
* deprecated, use `respect_response_cache_directives` instead
50
51
* @var int $default_ttl (seconds) If we do not respect cache headers or can't calculate a good ttl, use this
51
52
* value
52
53
* @var string $hash_algo The hashing algorithm to use when generating cache keys
@@ -55,7 +56,7 @@ final class CachePlugin implements Plugin
55
56
* We store a cache item for $cache_lifetime + max age of the response.
56
57
* @var array $methods list of request methods which can be cached
57
58
* @var array $respect_response_cache_directives list of cache directives this plugin will respect while caching responses.
@@ -72,11 +73,12 @@ public function __construct(CacheItemPoolInterface $pool, StreamFactory $streamF
72
73
}
73
74
74
75
/**
75
-
* This method will setup the cachePlugin in client cache mode. When using the client cache mode the plugin will cache responses with `private` cache directive.
76
+
* This method will setup the cachePlugin in client cache mode. When using the client cache mode the plugin will
77
+
* cache responses with `private` cache directive.
76
78
*
77
79
* @param CacheItemPoolInterface $pool
78
80
* @param StreamFactory $streamFactory
79
-
* @param array $config
81
+
* @param array $config For all possible config options see the constructor docs
80
82
*
81
83
* @return CachePlugin
82
84
*/
@@ -98,11 +100,12 @@ public static function clientCache(CacheItemPoolInterface $pool, StreamFactory $
98
100
}
99
101
100
102
/**
101
-
* This method will setup the cachePlugin in server cache mode. This is the default caching behavior (refuses to cache responses with the `private`or `no-cache` directives.
103
+
* This method will setup the cachePlugin in server cache mode. This is the default caching behavior it refuses to
104
+
* cache responses with the `private`or `no-cache` directives.
102
105
*
103
106
* @param CacheItemPoolInterface $pool
104
107
* @param StreamFactory $streamFactory
105
-
* @param array $config
108
+
* @param array $config For all possible config options see the constructor docs
0 commit comments