Created
June 13, 2018 14:37
-
-
Save szeidler/1ee19053a6ae0d09a99e28d97cd20780 to your computer and use it in GitHub Desktop.
Disables the cache for openx blocks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/openx.module b/openx.module | |
index e2932e8..cb696d3 100644 | |
--- a/openx.module | |
+++ b/openx.module | |
@@ -19,7 +19,8 @@ function openx_block_info() { | |
foreach ($zones as $index => $zone) { | |
if ($zone['id']) { | |
$blocks[$index] = array( | |
- 'info' => t('OpenX Zone !id (!name)', array('!id' => $zone['id'], '!name' => (empty($zone['name']) ? t('untitled') : $zone['name']))), | |
+ 'info' => t('OpenX Zone !id (!name)', array('!id' => $zone['id'], '!name' => (empty($zone['name']) ? t('untitled') : $zone['name']))), | |
+ 'cache' => DRUPAL_NO_CACHE, | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment