Skip to content

Commit 1ef8626

Browse files
committed
Fix aggressive cache invalidation
1 parent 202beee commit 1ef8626

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

app/Embed/Cache.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ public static function updateCacheTtl($ttl, $url, $attr, $post_ID)
5959
$cacheTime = get_post_meta($post_ID, $time, true);
6060

6161
if (!$cacheTime || (time() - $cacheTime > $cacheTtl)) {
62-
$wp_embed->usecache = false;
6362
delete_post_meta($post_ID, $time);
6463
delete_post_meta($post_ID, $key);
6564
return $cacheTtl;

iframely.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: Iframely
44
* Plugin URI: https://iframely.com/wordpress
55
* Description: WP media embeds, cards and blocks.
6-
* Version: 1.1.5
6+
* Version: 1.1.6
77
* Requires at least: 5.8
88
* Requires PHP: 7.4
99
* Author: Iframely.com
@@ -19,7 +19,7 @@
1919
exit;
2020
}
2121

22-
define('IFRAMELY_VERSION', '1.1.5');
22+
define('IFRAMELY_VERSION', '1.1.6');
2323
define('IFRAMELY_PLUGIN_DIR', plugin_dir_path(__FILE__));
2424
define('IFRAMELY_PLUGIN_URL', plugin_dir_url(__FILE__));
2525
define('IFRAMELY_PLUGIN_FILE', plugin_basename(__FILE__));

readme.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ Contributors: yellowby, ivanp, garmoncheg, psergeev
33
License: GPLv3
44
License URI: http://www.gnu.org/licenses/gpl.html
55
Tags: gutenberg, facebook, instagram, twitter, youtube, tiktok, twitch
6-
Tested up to: 6.8.1
7-
Stable tag: 1.1.5
6+
Tested up to: 6.8.2
7+
Stable tag: 1.1.6
88
Requires at least: 3.8
99
Requires PHP: 7.2
1010

@@ -122,6 +122,10 @@ You can change every aspect of Iframely embeds via your account settings at [ifr
122122

123123
== Changelog ==
124124

125+
= 1.1.6 =
126+
127+
* Fix aggressive cache invalidation (@kasparsd https://github.com/itteco/iframely-wordpress/issues/57)
128+
125129
= 1.1.5 =
126130

127131
* Fix TTL preset for 1 month (@aurooba https://github.com/itteco/iframely-wordpress/pull/53)

0 commit comments

Comments
 (0)