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.
I have 2 ads that are supposed to rotate on a random order.
The ads don't rotate on a single page. Refreshing the page results in always showing the same ad. Going to a different page has the potential of seeing a different ad. Turning the block caching off doesn't make any difference.
I have Drupal 7.26 installed, memcache, Simple ads 7.1.8 and code #17 of "Slow/Delayed rendering. Ads shows up 1-2 seconds after page finish loading." https://drupal.org/node/1832454
Any help is much appreciated.
Great module.
Thanks
Comment | File | Size | Author |
---|---|---|---|
#7 | simpleads-disable-caching-2201593-7.patch | 431 bytes | earthday47 |
Comments
Comment #1
MauriceK CreditAttribution: MauriceK commentedI have the same issue and turning of my page caching did the trick, but i'm looking for a more (performance-wise) sustainable solution.
Comment #2
rvb CreditAttribution: rvb commentedI also added $GLOBALS['conf']['cache'] = 0; (patch #9 on this issue https://drupal.org/comment/5949944#comment-5949944)
but that didn't solve it either
Edit: Patch 9 only disables cache to the redirected url, so that's normal that it wouldn't help with this issue.
Comment #3
Tran CreditAttribution: Tran commentedThis is a crucial issue.
Any idea why the maintainers do not address it?
Comment #4
rvb CreditAttribution: rvb commentedno idea Tran, I wish I could do more to help.
Comment #5
oscarhuerta8 CreditAttribution: oscarhuerta8 commentedAny solution for this?
Comment #6
txad00 CreditAttribution: txad00 commentedI have de same issue. I have no chaching. It only shows one add each time, no rotating.
And in the code it does'nt appear the other adds.
Thanks
Comment #7
earthday47Here is a patch that disables caching for the SimpleAds block. Should solve the rotating issue (for now).
Comment #8
ibraaheem CreditAttribution: ibraaheem as a volunteer commentedTurn off block cache. in your Config->Development->Performance page
Comment #9
The_Bucks CreditAttribution: The_Bucks commentedWhat I have noticed is that my 2nd ad out of 2 won't stay Published nor will it stay in the Active state under the Status. Any one found an answer for this yet? The note under status says that it should stay at it's selected state even if it's not published.
Comment #10
The_Bucks CreditAttribution: The_Bucks commentedI also tried the patch provided in #7, Cleared the caches, Turned off Cache pages for anonymous users and blocks and this did not help. I directly edited the node using phpMyAdmin to publish the node and this was no joy as well. The node reverts back to unpublished. The node reverts back to in Here's my setup:
NOTE:
The one ad that I have working and stays active and published is my "Text Ad". I will try to create another "Text Ad" to see if the ad type makes a difference. The ad that is not staying Published and active for me is an "image Ad".
Comment #11
Shane Birley CreditAttribution: Shane Birley as a volunteer commentedBy the way, there is also this module that may assist you:
I have used it in many different situations where block caching is not desired but you may want caching on all other blocks.
Comment #12
kenorb CreditAttribution: kenorb commentedComment #14
asrobI would close it beacuse it's fixed in 7.x-1.x branch. As you can see here: http://cgit.drupalcode.org/simpleads/tree/simpleads.module?h=7.x-1.x&id=...