Skip to content

Commit 65bfad0

Browse files
committed
wip
1 parent 3a63b43 commit 65bfad0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ $message = CloudFront::getInvalidation(string $invalidationId, string $distribut
3232
$messages = CloudFront::listInvalidations(string $distributionId = null)
3333
```
3434

35+
Please note, object invalidations typically take from 60 to 300 seconds to complete. You can check the status of an invalidation by viewing your distribution from the [CloudFront console](https://console.aws.amazon.com/cloudfront/).
36+
3537
## Installation
3638

3739
You can install the package via composer:

src/CloudFront.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ public function getClient(): CloudFrontClient
5252
public function invalidate($items, string $distributionId = null)
5353
{
5454
if (is_string($items)) {
55-
$items[] = $items;
55+
$arr[] = $items;
56+
$items = $arr;
5657
}
5758

5859
return $this->client->createInvalidation([

0 commit comments

Comments
 (0)