class Nokogiri::CSS::Parser

def set_cache(value)

Set a thread-local boolean to turn cacheing on and off. Truthy values turn the cache on, falsey values turn the cache off.
def set_cache(value)
  Thread.current[CACHE_SWITCH_NAME] = !value
end