Also I’m using this “related posts” plugin…
This is an interesting development…
The following PR added related_posts
to the SiteDrop
so that a document’s “related-posts” are calculated only if and when its asked for in the Liquid Templates. (That’s how Liquid::Drop
and its subclasses, of which is SiteDrop
, works…)
While the above PR also memoized the built-in method (the use of @related_posts ||=
…), making it more efficient by having to run just once for a given document irrespective of how many times the method is called…, the plugin’s method run the full code for each call to the method.
So, @toshimaru
will now have to memoize his method definition for the plugin’s users to efficiently use Jekyll 3.8.0
You can get the ball rolling on this by opening an issue ticket at the plugin’s repo informing the author about the developments upstream.