Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cache rendered template

See original GitHub issue

Seems like Fue is compiling the template each time I call it (I’m using fromText), even if it doesn’t change (except the data). This generates a lot of unneeded memory traffic which I’d like to avoid. Is there any way to reuse the compiled template?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

petejohansoncommented, Dec 14, 2018

PS: @Dzoukr thanks for a nice codebase that works OOTB when using .NET Core on Linux!

Dzoukrcommented, Dec 15, 2018

Hi @petejohanson & @megafinz, I just merged changes from PR. Let me check few tests and we can publish new version. I agree with @petejohanson that it is subtle change and behavior should be actually like that from very beginning.

Read more comments on GitHub >

github_iconTop Results From Across the Web

go - What is a template cache?
The template cache exists so that templates have to be compiled only once. Without it, the same template(s) would have to be compiled...
Read more >
Documentation: Ultimate Guide to Template Module Caching
When caching is enabled, and Movable Type no longer needs to parse, compile and render the contents of a template module, the number...
Read more >
Frequently Asked Questions — Jinja Documentation (3.1.x)
Rendering a template becomes as close to executing a Python function as possible. Jinja also makes extensive use of caching. Templates are cached...
Read more >
Partial Caching | Silverstripe CMS Documentation
Partial template caching is a feature that allows caching of rendered portions a template. Cache block conditionals#. Use conditions whenever possible. The ...
Read more >
Build Faster Websites with Craft CMS Template Caching | Blog
As you can imagine, a very complex or content-heavy page will probably require many more database queries to render everything. Caching a section...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found