Closed (won't fix)
Project:
Authenticated User Page Caching (Authcache)
Version:
7.x-1.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 May 2013 at 14:21 UTC
Updated:
2 Nov 2013 at 10:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #0.0
nielsvoo commentedtext
Comment #0.1
nielsvoo commentedtext
Comment #1
znerol commentedShort answer, Authcache Ajax Blocks currently do not work when rendered using panels. Long answer follows.
Panels alone only provides a nice user interface for quickly putting together pages with different layouts. The content (panes) are provided not by panels but using ctools content type plugins (not to confuse with drupal core content types - sight). The code responsible for rendering blocks in panels is located at ctools/plugins/content_types/block/block.inc.
In order to inject the markup necessary to defer the rendering of blocks, authcache 1.x implements
hook_preprocess_blockswhich is never called from the ctools block content type plugin. This problem also exist in authcache 2.x where the Ajax code is injected viahook_page_alter.Instead of trying to support blocks in panel panes, it would be better to directly target ctools content types and try to make them loadable via ajax. I guess that the Ajax Pane module might solve your problem. However keep in mind that when every cached page request triggers multiple Ajax request to the backend, you probably won't get much performance gains from authcache. Authcache Ajax Blocks solves this problem by setting a
Cache-ControlHTTP header with amaxage. Like this, the response is cached in the users browser and subsequent requests will not hit the server at all.Comment #2
nielsvoo commentedDear Znerol,
Thank you for your answer. Indeed the pane module did the trick for me although i had to patch it, otherwise there was an error for these panels.
The patch needed can be found here: page to patch
Attached the complete package of this module included a patched file.
Nielsvoo
Comment #2.0
nielsvoo commentedtext
Comment #3
znerol commentedYou may want to take a look at the upcoming 2.0 release. In the dev version loading panels content panes via Ajax or ESI is supported natively.
Comment #4
znerol commented