Skip to content

Commit d754c2a

Browse files
authored
Merge pull request #53 from aurooba/patch-1
Fix TTL Preset for 1 month to be 30 days instead of 30 months
2 parents 6068ce1 + 7a749e9 commit d754c2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Embed/Cache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public static function updateCacheTtl($ttl, $url, $attr, $post_ID)
7171
public static function getTtlPresets(): array
7272
{
7373
return [
74-
MONTH_IN_SECONDS * 30 => __('1 month', 'iframely'),
74+
MONTH_IN_SECONDS => __('1 month', 'iframely'),
7575
WEEK_IN_SECONDS * 3 => __('3 weeks', 'iframely'),
7676
WEEK_IN_SECONDS * 2 => __('2 weeks', 'iframely'),
7777
WEEK_IN_SECONDS => __('1 week', 'iframely'),

0 commit comments

Comments
 (0)