Drupal site caching with session-specific data on each page

We have a website written in Drupal 6.

We want to use Drupal's caching mechanism to improve performance, but when we turned it on we found problems because our site has session data displayed on every page. The Drupal caching system only works on a static content page, and our session data effectively means that none of our pages are static.

We have developed two solutions:

  • Rewrite a block that displays session data in such a way that it loads non-static data using Ajax, so that the main HTML content is then static. The bottom line is that this will mean quite a bit of work, as well as that it will reduce functionality for non-Javascript users and specialized browsers (such as screen readers).

  • Move session data to iframeor similar. It just sounds wrong, and I don't want to do it, but I think it will fix the problem.

  • or find an alternative caching system that allows us to cache the site in such a way as to deal with a small block of dynamic data on each page. This is our preferred option, but we could not make any progress in finding anything, so the question is here.

So, if anyone has suggestions that will help us with option 3, let us know. Thank.

(ps - I know that Drupal 7 has an improved caching system that could help with this, but we are not ready to switch to D7 yet)

[EDIT] There is no significant progress in this, so I will open it to generosity.

, Ubercart ( Drupal , , ). , , (.. " , " ) , . , ; , , . , Ubercart , .

+3
5

Ajax.

, Authcache, Ajax Blocks.

http://drupal.org/project/ajaxblocks

, , , js.

+2
+3

ESI . , , Google .

PS: D7, .

+1

: http://drupal.org/project/blockcache_alter. , , , .

In addition, there are many great resources here that can lead to something useful: http://drupal.org/node/326504

0
source

My problem is very similar. Depending on the session setting, the body background changes. I could add a class to the body tag using jQuery, but I don't know if this performance will look normal.

I will check it and report back.

0
source

All Articles