I am writing a blog application All the pages (the list of posts, the details of the post) are really static, I predict When I should update (for example, when I write a new post or add a comment). I can use @cache_page to cache the whole scene.
The only problem is that in every page, I get some data from Twitter that I want to update every 5 minutes.
Django offers template caching, per-view caching and low level cache framework. With the low level structure, I can avoid calculating most pages on the page (such as post questions, comments, tags ... caching).
What is the best way to solve my problem?
I want to avoid using IFrame.
Thanks
Div class = "post-text" itemprop = "text">
You can access the cache for some parts of a DNS template I can not get out of it, I do not know this in any other template engine.
My advice is that you have to use javascript to load with asynchronous, you are changing the content at any time. This should be especially easy with Twitter as it already provides a great API.
This is not suitable for you, you can always use only the cache of your template to cache.
No comments:
Post a Comment