Sha256: 6d01645b035d9b80766f40ef941c242079a300140bc60c379c927725dedb7e5e
Contents?: true
Size: 482 Bytes
Versions: 27
Compression:
Stored size: 482 Bytes
Contents
def fetch_cache_card input_card, new=nil new &&= { type_id: PlainTextID } Card.fetch input_card.name, name, :machine_cache, new: new end def cache_output_part input_card, output Auth.as_bot do # save virtual cards first # otherwise the cache card will save it to get the left_id # and trigger the cache update again input_card.save! if input_card.new_card? cache_card = fetch_cache_card(input_card, true) cache_card.update! content: output end end
Version data entries
27 entries across 27 versions & 2 rubygems