Closed (fixed)
Project:
OpenX
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Mar 2012 at 09:16 UTC
Updated:
28 Nov 2013 at 19:00 UTC
Jump to comment: Most recent
The OpenX module adds some javascript code to the html header when an OpenX block is going to be displayed. This method works fine as long as block cache isn't enabled. Then only the output of the block will be cached, and the header will no longer be generated, leading to JS errors like OA_show is not defined.
The attached patch tells Drupal to never cache OpenX blocks. As we do not have a simple JS file to add, we can't use Drupal's render array to attach files and fix it this way.
| Comment | File | Size | Author |
|---|---|---|---|
| openx_block_cache.patch | 617 bytes | mh86 |
Comments
Comment #1
Canadaka commentedthanks, this patch works!
Comment #2
mxtYes! this patch works very well also for me.
Can this be committed please?
Thank you!
Comment #3
andy.s.clark commentedPatch works as expected.
Comment #4
tneo commentedHas this patch been committed?
Comment #5
wuinfo - bill wu commentedPatch is working.
Comment #6
wuinfo - bill wu commentedCommitted.
Comment #7
wuinfo - bill wu commented