Caching a Drupal site with session-specific data on every page

随声附和 提交于 2019-12-04 15:05:30

Ajax Blocks.

A simpler Solution than Authcache is Ajax Blocks.

http://drupal.org/project/ajaxblocks

Works well, and from what I remember it handles users without js fairly well.

Have you looked at the Authenticated User Page Caching (Authcache) module? It works similarly to what you describe in option 1 above.

Another solution would be to use an ESI gate to render your pages as an assembly of blocks. There are a few projects around this, I'm no expert but searching google could give you some ideas.

PS: You will have the same problem with D7, caching is more or less the same.

You might want to check out this module: http://drupal.org/project/blockcache_alter. I'm not sure if that will accomplish what you are looking for or not, but it might help give you insight into block caching.

Also, there are a lot of great performance resources here that could lead to something helpful: http://drupal.org/node/326504

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

I'll test it and report back.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!