[Answer]-Django cache everything but a piece

1👍

You can not exclude certain parts of a Django template for the cache not should this work in any other template engine I know of.

My advice would be to use JavaScript to asynchronously load you’re ever changing content. It should be particularly easy with Twitter as the already offer a great API.

It that doesn’t suit you, you can always use Django template caching, to cache only parts of your template.

0👍

One option might be to set up Varnish on the server. I’m not familiar with Varnish myself, but as I understand it you can use Edge Side Includes to cache only certain fragments of a page.

Obviously it may not suit your use case, but it sounds like a possibility.

Leave a comment