I have a PDF output of certain nodes that take about 12 seconds to load when user clicks on /printpdf/node/nid for the first time but since it's cached next click it loads in 1-2 seconds.

Was wondering if their is any way to create preemptive cache, maybe with rules or on hook node save ? Is there a function that could be called for this ?

Comments

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

No, there's no function for this. But it should be easy for you to create a robot that goes through all the sitemap.xml URLs and calls the PDF version of those.

jcnventura’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (works as designed)

No further info in a long time. Closing the issue.