public TextLayoutBuilder setShouldCacheLayout(boolean shouldCacheLayout) {
    mShouldCacheLayout = shouldCacheLayout;
    return this;
  }
Sets whether the text layout should be cached or not.

<p>Note: If the Layout contains {@link ClickableSpan}s, the layout will not be cached.

@param shouldCacheLayout True to cache the text layout, false otherwise
@return This {@link TextLayoutBuilder} instance
library/src/main/java/com/facebook/fbui/textlayoutbuilder/TextLayoutBuilder.java