Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Per plugin caching
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
kux  
View profile  
 More options Oct 26 2012, 8:32 am
From: kux <alexandruioan.c...@gmail.com>
Date: Fri, 26 Oct 2012 05:32:32 -0700 (PDT)
Local: Fri, Oct 26 2012 8:32 am
Subject: Per plugin caching

Hi guys,

I've been doing some profiling on a django-cms build website, and noticed
that long response times are caused by plugin rendering logic.

Would it be a good idea to be able to have some plugin caching
functionality?
Ex:

CMS_CACHE_DURATIONS = {
    'permissions': 3600,
    'content': 60,
    'menus': 3600,
    'TextPlugin': 60,
    'LinkPlugin': 60

}

This would also mean that CMSPluginBase would also need to have a method
for invalidating the cache. The developers writing their own plugins could
call this cache invalidating method in post_save hooks.

If you don't find this as being a good idea, what would you guys do for
improving the front end view's response time?

Regards,
Alex


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jonas Obrist  
View profile  
 More options Oct 27 2012, 12:07 pm
From: Jonas Obrist <ojiido...@gmail.com>
Date: Sat, 27 Oct 2012 09:07:40 -0700 (PDT)
Local: Sat, Oct 27 2012 12:07 pm
Subject: Re: Per plugin caching

Hi Alex,

Do you have any details what exactly is slow in plugin rendering? What
versions (CMS/Django) are you using?

Before we prematurely just slap caching on top of something, let's try to
figure out why it's slow and if there's not better ways to solve this.

Jonas


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
kux  
View profile  
 More options Nov 1 2012, 6:22 am
From: kux <alexandruioan.c...@gmail.com>
Date: Thu, 1 Nov 2012 03:22:00 -0700 (PDT)
Subject: Re: Per plugin caching

Hi Jonas,

There's nothing inherently slow within the cms itself.
The problem is when you have pages with dozens of plugins the rendering
simply takes time.

Most of the times, the problem is within the plugin itself. For example
cmsplugin-feed   <https://bitbucket.org/yml/cmsplugin-feed>uses the
feedparser <http://pypi.python.org/pypi/feedparser/> library that needs
around 2s to parse a medium sized rss feed.
You can obviously try to improve the performance of each plugin by
optimizing parsing algorithms and so on, but that would obviously take a
lot of time and it might require forking third-partly libraries.

The easiest way would be to implement caching for each plugin, but then
you'd have to write very similar logic in all plugins, so I thought it
would be a nice feature for django-cms to offer this feature.

Regards,
Alex


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »