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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

MauriceK’s picture

I have the same issue and turning of my page caching did the trick, but i'm looking for a more (performance-wise) sustainable solution.

rvb’s picture

I 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.

Tran’s picture

This is a crucial issue.
Any idea why the maintainers do not address it?

rvb’s picture

no idea Tran, I wish I could do more to help.

oscarhuerta8’s picture

Any solution for this?

txad00’s picture

I 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

earthday47’s picture

Here is a patch that disables caching for the SimpleAds block. Should solve the rotating issue (for now).

ibraaheem’s picture

Turn off block cache. in your Config->Development->Performance page

The_Bucks’s picture

What 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.

The_Bucks’s picture

I 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:

  1. Hostgator = VPS
  2. CentOS = 6
  3. Drupal = 7.41
  4. PHP = 5.5.16
  5. PHP memory limit = 256
  6. Web server = Apache/2.4.10

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".

Shane Birley’s picture

By 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.

kenorb’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 7: simpleads-disable-caching-2201593-7.patch, failed testing.

asrob’s picture

Version: 7.x-1.8 » 7.x-1.x-dev
Status: Needs work » Fixed

I 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=...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.