Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Media gallery takes over the page deliver callback for lightbox paths, but media_gallery_lightbox_page_deliver() doesn't call drupal_page_footer(), so these callbacks can't use the page cache.
I'm not sure why drupal_page_footer() wouldn't be called here, so the attached patch adds this.
Comment | File | Size | Author |
---|---|---|---|
#3 | media_gallery-add-page-cache-1387912-3.patch | 471 bytes | msonnabaum |
media_gallery-add-page-cache.patch | 466 bytes | msonnabaum |
Comments
Comment #1
Moloc CreditAttribution: Moloc commentedHaving a look into the two functions drupal_page_footer() and drupal_exit(), it seems, that this patch needs some more work?
Both functions execute the following lines:
For example, using the core statistics module, and the "access log" option is activated, the module will create two log entries, because hook_exit is executed two times in one page request.
Therefore i assume, this patch needs work.
Comment #2
David_Rothstein CreditAttribution: David_Rothstein commentedYeah, it looks to me like if the patch is adding drupal_page_footer(), it should probably also remove the drupal_exit().
Comment #3
msonnabaum CreditAttribution: msonnabaum commentedGood call.
Comment #4
lsolesen CreditAttribution: lsolesen commented@msonnabaum Is this still a valid issue?
Comment #5
Moloc CreditAttribution: Moloc commentedPatch applies cleanly and works as expected.
Comment #6
Moloc CreditAttribution: Moloc commentedCommited: http://drupalcode.org/project/media_gallery.git/commit/5ce9c49b33cec83c3...