Giter Club home page Giter Club logo

Comments (1)

jerclarke avatar jerclarke commented on August 29, 2024

Extra context: This was breaking our Varnish cache, which choked on RSS feeds which had long articles with many links because having all the Amber HTML inserted effectively doubles the length of such posts.

While we're also working to fix our Varnish to be able to handle extra-long content, it's nonetheless a big problem to have all this extra HTML which won't have any effect in RSS contexts. It increases the size of content which is likely to affect many different services that store the resulting HTML.

Thank you for considering fixing this. For anyone else who wants a fix, it is easily fixable using the filter we added in #48 with the following code:


/**
 * Disables Amber's URL lookup by returning an empty string for the URL.
 *
 * @param string $url
 *
 * @return string
 */
function gv_amber_disable_url_lookup($url) {
	if (is_feed())
		$url = '';

	return $url;
}
add_filter('amber_lookup_url', 'gv_amber_disable_url_lookup');

from amber_wordpress.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.