WordPress.org

Ready to get started?Download WordPress

Forums

W3TC Plugin Conflict (9 posts)

  1. supercleanse
    Member
    Posted 2 years ago #

    fredrick,

    Hi, I'm the developer of another plugin called Pretty Link. Several of my users have reported that they are having problems saving their Pretty Link settings when W3TC is installed and active.

    I have narrowed this down to some kind of conflict with W3TC Object caching. I'm storing options in a serialized object which is retrieved from the database like so:

    $prli_options = get_option('prli_options');

    Then I modify the object and update it like so:

    update_option('prli_options',$prli_options);

    Getting the object seems to work just fine but then when I modify the object and attempt to update it using update_option with object caching the new object is not inserted into the database.

    I have tried modifying my code to use wp_cache_get/set, have attempted to flush the w3tc object cache before calling update_option and have even setup a caching group & tried adding it to the non-persisting list in w3tc -- all of these approaches have failed.

    I'd really love it if there was a way that I could update this and other objects I'm serializing and storing in the database. I've googled this issue (which I know is affecting other plugin developers) and haven't seen any answers to it.

    I really appreciate any insight you might have.

    Thanks,

    Blair

  2. supercleanse
    Member
    Posted 2 years ago #

    I just tried adding this:

    define('DONOTCACHEOBJECT', true);

    It still won't update the object in the database.

    Thanks,

    Blair

  3. Frederick Townes
    Member
    Posted 2 years ago #

    Can you submit a bug submission form from the support tab of the plugin? I'd like you to try the next release that I think addresses this.

  4. supercleanse
    Member
    Posted 2 years ago #

    Sure -- doing it now ... thanks!

    Blair

  5. Frederick Townes
    Member
    Posted 2 years ago #

    Thanks a lot, this is addressed already in the upcoming release. Can send you a preview if you like.

  6. supercleanse
    Member
    Posted 2 years ago #

    Fantastic -- I'd love to see a preview ... you can just email it to me if you want. Thanks for your response on this -- you and your team are great!

  7. paulieb81
    Member
    Posted 2 years ago #

    @ Frederick

    Any chance of releasing the upcoming release under the DEV version for wide testing? I am having issues listed in other threads, and would love to test it.

  8. Frederick Townes
    Member
    Posted 1 year ago #

    Compatibility is working in the next release coming soon.

  9. Flavio Martins
    Member
    Posted 1 year ago #

    Any update on a workaround for this?

    I have a separate plugin that tweets out a blog post then updates a field in the DB. I know it works find for everyone who is NOT using W3TC as they don't have object caching in place.

    But it looks like if you do, the field is never updated in the DB and causes a big error with the plugin.

Topic Closed

This topic has been closed to new replies.

About this Topic