Possible to cache PDFs made with Entity Print in Varnish?

Created on 12 August 2019, over 5 years ago
Updated 19 February 2025, 2 months ago

Here is our use case:

We generate a lot of content that needs to be "branded" (i.e. receive a logo and have some tenant-specific display variables factored in), and delivered as a PDF. We've been using Entity Print to build these PDFs - but today I realized that items delivered by Entity Print are not cacheable.

My research took me to https://www.drupal.org/node/2795209 β†’ , and it looks like Bigpipe may have somewhat solved this but there doesn't seem like a clear way to apply that to other contribs like Entity Print.

I'd like to confirm that Entity Print does not currently support caching the pdfs it renders, and assuming it does not, are there are any plans in the works to support this?

Thanks!

πŸ’¬ Support request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States dpolant Rochester NY

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • First commit to issue fork.
  • Merge request !71PDF output caching β†’ (Open) created by karlshea
  • Pipeline finished with Failed
    2 months ago
    Total: 274s
    #429206
  • πŸ‡ΊπŸ‡ΈUnited States karlshea Minneapolis πŸ‡ΊπŸ‡Έ

    Added optional caching using the filecache module. It was suggested in Slack that moving either the cache or PrintBuilder to the factory pattern with a default null cache could work instead of altering the container, but I needed to get this live due to fix an overloaded website so would need to come back to that.

  • Pipeline finished with Failed
    2 months ago
    Total: 342s
    #429227
Production build 0.71.5 2024