Download & Extend

Contents of "Current Program" block - Drupal caching, Panels, and AJAX

Project:Station
Version:5.x-2.x-dev
Component:Other
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Hi all,

So I have the scenario where I was using Panels and wanted to embed the Current Program block within a pane. Then I went and turned on "Normal" caching mode and shortly noticed that the current program info was not changing in the block when it was inside the panel. As a regular block in a page region, it was fine.. I opened a discussion on this here: http://drupal.org/node/328242 .. I am being told that if normal page caching is turned on, then it is impossible to deal with dynamic content in a page. (I thought this is what Aggressive caching was doing, but I readily admit my ignorance of Drupal's caching)..

So my workaround I am thinking is to whip up some AJAX and let Javascript populate the current program name. I wanted to create this ticket to see if anyone has already done this or might have any thoughts they'd like to share. When I get something working, I'll post a patch.

Comments

#1

Version:5.x-1.5» 5.x-2.x-dev

yeah, the whole block caching is a problem in D5. in D6 modules are able to specify the caching behavior of blocks.

an ajax method would be pretty cool and would have the benefit of updating the page through the day. i haven't done anything with it but i'd be interested in seeing what you come up with. please do any development on the 2.x branch as i'm not committing any features to the 1.x branch at this point.

#2

for 6.x this would be pretty handy: #343542: Enable optional auto-refreshing views using AJAX

nobody click here