diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..a55ddc8 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/php.xml b/.idea/php.xml new file mode 100644 index 0000000..66ea8f5 --- /dev/null +++ b/.idea/php.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/wp-rocket-helpers.iml b/.idea/wp-rocket-helpers.iml new file mode 100644 index 0000000..c956989 --- /dev/null +++ b/.idea/wp-rocket-helpers.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/cache/wp-rocket-cache-feed/wp-rocket-cache-feed.zip b/cache/wp-rocket-cache-feed/wp-rocket-cache-feed.zip index b1389ce..1ae6a05 100644 Binary files a/cache/wp-rocket-cache-feed/wp-rocket-cache-feed.zip and b/cache/wp-rocket-cache-feed/wp-rocket-cache-feed.zip differ diff --git a/cache/wp-rocket-cache-feed/wp-rocket-cache-feed/inc/functions.php b/cache/wp-rocket-cache-feed/wp-rocket-cache-feed/inc/functions.php index 309e579..04a032d 100644 --- a/cache/wp-rocket-cache-feed/wp-rocket-cache-feed/inc/functions.php +++ b/cache/wp-rocket-cache-feed/wp-rocket-cache-feed/inc/functions.php @@ -57,3 +57,15 @@ function wp_rocket_cache_feed_notice() { unset( $_GET['activate'] ); } } + +/** + * Added feed urls to the preload. + * + * @param string[] $urls urls to add to the preload. + * @return string[] + */ +function wp_rocket_preload_feeds($urls) { + $feed_url = get_feed_link(); + $urls []= $feed_url; + return $urls; +} diff --git a/cache/wp-rocket-cache-feed/wp-rocket-cache-feed/wp-rocket-cache-feed.php b/cache/wp-rocket-cache-feed/wp-rocket-cache-feed/wp-rocket-cache-feed.php index dfe421e..cd628bf 100644 --- a/cache/wp-rocket-cache-feed/wp-rocket-cache-feed/wp-rocket-cache-feed.php +++ b/cache/wp-rocket-cache-feed/wp-rocket-cache-feed/wp-rocket-cache-feed.php @@ -46,6 +46,8 @@ function wp_rocket_cache_feed_maybe_deactivate() { } add_action( 'admin_init', 'wp_rocket_cache_feed_maybe_deactivate' ); + + /** * Run when plugin is activated * @@ -63,6 +65,8 @@ function wp_rocket_cache_feed_activate() { } register_activation_hook( __FILE__, 'wp_rocket_cache_feed_activate' ); +add_filter( 'rocket_preload_load_custom_urls', 'wp_rocket_preload_feeds' ); + /** * Run when plugin is deactivated *