Closed (won't fix)
Project:
DFP Small Business (Google Ad Manager)
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Aug 2010 at 17:20 UTC
Updated:
15 Sep 2012 at 06:48 UTC
Comments
Comment #1
dalinBlocks can be cacheable if theme_google_admanager_block() returned a renderable array rather than a string. JS can be attached to renderable arrays via the '#attached' property.
http://api.drupal.org/api/drupal/developer--topics--forms_api_reference....
Comment #2
jcisio commentedThat sounds good. The only drawback is that we have the initialization JS in every page, even if there is no ads. However, it is a rare case and is a good trade-off.
Comment #3
dalinHowever it should be noted that caching these blocks is probably bad for performance. It only takes some very simple PHP to build these blocks - no database calls, no heavy loops. This simple PHP will most likely be much faster than even a call to a local memcache instance.
Comment #4
jcisio commentedWhat concerned me is if blocks are not cacheable, the whole page is not cacheable. And now I realize that it is not correct.
I prefer to won't fix this issue.
Comment #5
jcisio commentedBecause of #3 and #4.