WordPress.org

Ready to get started?Download WordPress

Forums

Ads by datafeedr.com
Ads not displaying randomly (3 posts)

  1. doorsixteen
    Member
    Posted 1 year ago #

    I installed this great plugin on a client's blog a couple of weeks ago without any problems displaying ads randomly. However, upon implementing it on a second client's blog, the block of ads that should be random are showing up in descending order. The site is hosted by WP Engine, who automatically cache all content.

    Here the code currently in use:
    [dfads params='groups=4853&container_class=textwidget&ad_html=p&return_javascript=1']

    I have cleared the cache several times to no avail. There are no other groups with the ID number 4853 in use. All other blocks of ads (set to display in ascending sequence by menu order) are displaying properly. It's only the random ad display that is not functioning as expected.

    Any suggestions?

    http://wordpress.org/extend/plugins/ads-by-datafeedrcom/

  2. doorsixteen
    Member
    Posted 1 year ago #

    UPDATE:
    I have discovered that WP Engine blocks ORDER BY RAND() orderings in MySQL queries by default.

    They suggest that if a customer wishes to enable ORDER BY RAND(), that they cache the results for 5-15 minutes so the database isn't pummeled by slow queries.

    Any suggestions on how to achieve this with your plugin?

    Thanks!

  3. datafeedr
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    Wow, that's interesting.

    Unfortunately I don't really have any suggestions to get around this.

    Eric

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic