From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qGPUKak+dmDMHwAAgWs5BA (envelope-from ) for ; Wed, 14 Apr 2021 03:00:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id ODKpI6k+dmBpFAAAB5/wlQ (envelope-from ) for ; Wed, 14 Apr 2021 01:00:25 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E1CC01CFE5 for ; Wed, 14 Apr 2021 03:00:24 +0200 (CEST) Received: from localhost ([::1]:57596 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWTtI-00089j-16 for larch@yhetil.org; Tue, 13 Apr 2021 21:00:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54936) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWTCo-00007o-Mv for emacs-orgmode@gnu.org; Tue, 13 Apr 2021 20:16:30 -0400 Received: from out0.migadu.com ([94.23.1.103]:11817) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWTCl-0006CG-PX for emacs-orgmode@gnu.org; Tue, 13 Apr 2021 20:16:30 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=despisinggravity.com; s=key1; t=1618359381; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=q7xYcfDKBurPNR9OTG/1ezPElkbzJkOCRINY6Ztmhwg=; b=qhgZ3nD7zLJS1djKxr/ifuqSkTJti52AJhSuCcf1/U0R1Mp1zmFFTyTCQa78pUNRqB2IUt Zx2jZePgu/4JUD2FiXkv9tL4X60e3IKcnIEcnbVClDwJAJh0BDSwl631oLFYcWmq8ful54 vZQWDTym2FzSXOMtEN67VhJOG2AhhfQW+YKmIW/gYqBdW9FGJzYLow1g29ZgLHHXfjnN5a Gy1NNk9vCrs3z0Yyhpz1jovopAdIyy/tOxKvoxGfazh96jrH4/6XcqfK4qYZkc7+bFV6Ns DU3rQeD8QPtmpiH8xas3w8w5TpXXVIPYzw/7s4s89fHPmImWP7AzhCoI2KS8ag== From: Nick Daly To: CS Suehs Subject: Re: plantuml, png and caching In-Reply-To: References: CC: emacs-orgmode@gnu.org Date: Tue, 13 Apr 2021 19:16:18 -0500 Message-ID: <87a6q12019.fsf@europa> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Auth-User: nick@despisinggravity.com Received-SPF: pass client-ip=94.23.1.103; envelope-from=nick+orgmode@despisinggravity.com; helo=out0.migadu.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 13 Apr 2021 20:59:41 -0400 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618362025; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=q7xYcfDKBurPNR9OTG/1ezPElkbzJkOCRINY6Ztmhwg=; b=aG22a4+XArp8H+mevs2PSTQYHhgDzKhVcAUjvHYxEqU9QexhcSDc2o7ovuSckYkC4lAkae vTh2FQfzn22+N6fGoFcvzWqu3Vjy1BEciW1Xjl1FipO9DkSYT29/AP2lVbZ8ZSvsd6bAN1 +n2vo/RHPYcGEWdV2BynXHdQD/Q8gPc+sE6To82nCkoiXyE1DDaIKRMcnCqEhLT8BokooX 4+vM/J/U62nlUGVDy/DBPJTREpW4I8SJxu/zMZdQ9FKiSGmTXR+19xqOzq2EloAjsUqH1i 95HYCHsFRr3Tr7ATqxIu/FKKiu0YkvpZIdmAXU6AXj7qryBWhUBnvMuN+FgVBA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618362025; a=rsa-sha256; cv=none; b=N6JPFhybTFmTlpgN9E+tRDccMuBxi8e8xc+lpCtUyPq913in+EoLL5nbv2Hh2yS2qRDy6y O+tLr8sl/aH4RIFWz0Qx5PwvkQFmkCMhuDBD1qEXvSo7ezmR2PZk8cH3CcVDYCpYcPLv3m mN5qc48mR2S+Eq4RiEocLDWMvPWEoUI0E+O79hqh+KjGAnuY5GLAg2L22r5Bvi011jI6fc GO2AOrUYQ+CKnozxoTRCt57yAMoDQ96tTGq2PYuvAgqGPYkscFFkoGviI8o7EFwSsgnggK 3G2i85erCSPzmfywJep1eqQNegida8XanOELgE0DSHti6jBy3SGe4aDmpJzPcw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=despisinggravity.com header.s=key1 header.b=qhgZ3nD7; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.14 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=despisinggravity.com header.s=key1 header.b=qhgZ3nD7; dmarc=pass (policy=quarantine) header.from=despisinggravity.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: E1CC01CFE5 X-Spam-Score: -1.14 X-Migadu-Scanner: scn0.migadu.com X-TUID: os/bWNEdUI2f CS Suehs writes: > Should I expect PlantUML source blocks and their resulting images to > be cached and respect `:cache true` ? Yes. > In my experience they regenerate every export, even with :cache true. Can you provide an example? This example caches correctly for me on v9.1.14. #+name: helloworld #+header: :cache yes #+BEGIN_SRC plantuml :file helloworld.png @startuml Hello --> World @enduml #+END_SRC #+RESULTS[f29ead8751dde1b4c4ee1b8fcb97e133c75eed0d]: helloworld [[file:helloworld.png]] The only time I've seen caching break is if the diagram imports an external file. In that case, the diagram doesn't regenerate often enough, because org doesn't notice that the external file changed. The fix to that is to include the hash of the external file as a dependent var. #+name: md5 #+BEGIN_SRC shell :cache no :var afile="PLACEHOLDER" md5sum $afile #+END_SRC #+name: cache-correctly #+header: :var md5input=md5("data.txt") #+BEGIN_SRC R :exports results :results output graphics :file data.svg aData <- read.csv("data.txt") ggplot(data = aData, mapping = aes(x = aData$id, y = aData$value)) #+END_SRC Thanks, Nick