WordPress.org

Ready to get started?Download WordPress

Forums

Ultimate Blogroll
Could you test this ? (3 posts)

  1. syndrael
    Member
    Posted 1 year ago #

    ..submitting the same site many times by refreshing your page.
    I mean that it still inserts in the database each time you refresh the page.
    Could you test it ? I think it's because of '$sql = $wpdb->prepare("select website_id from ".$table_name." where website_url = %s.. ' in a function called 'doWeAlreadyHaveThisSubmission' in the file persistence/UbLinkpartnerMapper.php
    It's due to the prepared statement which can be sometimes concerned as a cache.
    Do you see what i mean ?
    May be $wpdb->query would be better than $wpdb->prepare ?
    Best regards
    S.

    http://wordpress.org/extend/plugins/ultimate-blogroll/

  2. jensg
    Member
    Plugin Author

    Posted 1 year ago #

    This should be fixed by using the PRG pattern:
    http://en.wikipedia.org/wiki/Post/Redirect/Get

  3. syndrael
    Member
    Posted 1 year ago #

    What do you mean (sorry for my poor english)?
    Is it fixed in the plugin or do i have to fix it on my own ?
    I usually call prepared statements for 'repetitive' queries (except XSS) ? this query is not very repetitive according to me.
    Best regards
    S.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.