File tree Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 6
6
7
7
/**
8
8
* An HTTP caching reverse proxy.
9
+ *
10
+ * Implementations should implement at least one of the Method interfaces.
9
11
*/
10
12
interface CacheProxyInterface
11
13
{
Original file line number Diff line number Diff line change 6
6
7
7
/**
8
8
* An HTTP cache that supports invalidation by purging, that is, removing one
9
- * URL from the cache
9
+ * URL from the cache.
10
+ *
11
+ * Implementations should be configurable with a default host to be able to
12
+ * handle purge calls that do not contain a full URL but only a path.
10
13
*/
11
14
interface PurgeInterface extends CacheProxyInterface
12
15
{
@@ -16,7 +19,10 @@ interface PurgeInterface extends CacheProxyInterface
16
19
* Purging a URL will remove the cache for the URL, including the query
17
20
* string, with all its Vary variants.
18
21
*
19
- * @param string $url
22
+ * If the $url is just a path, the cache proxy class will add a default
23
+ * host name.
24
+ *
25
+ * @param string $url Path or URL to purge.
20
26
*
21
27
* @return $this
22
28
*/
Original file line number Diff line number Diff line change 6
6
7
7
/**
8
8
* An HTTP cache that supports invalidation by refresh requests that force a
9
- * cache miss for one specific URL
9
+ * cache miss for one specific URL.
10
+ *
11
+ * Implementations should be configurable with a default host to be able to
12
+ * handle refresh calls that do not contain a full URL but only a path.
10
13
*/
11
14
interface RefreshInterface extends CacheProxyInterface
12
15
{
@@ -16,6 +19,9 @@ interface RefreshInterface extends CacheProxyInterface
16
19
* Refreshing a URL will generate a new cached response for the URL,
17
20
* including the query string but excluding any Vary variants.
18
21
*
22
+ * If the $url is just a path, the cache proxy class will add a default
23
+ * host name.
24
+ *
19
25
* @param string $url Path or URL to refresh.
20
26
* @param array $headers Extra HTTP headers to send to the caching proxy
21
27
* (optional)
You can’t perform that action at this time.
0 commit comments