Issue with object cache when adding/updating metadata?

This topic contains 16 replies, has 3 voices, and was last updated by  Kiran 5 years, 2 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #468264

    Emlyn Jones
    Full Member
    Post count: 32

    Hi,

    I have a site set up with GD v2 installed on WPMUDev Hosting.

    This has Object Caching enabled by default at hosting level. I can flush this manually, and it gives me a warning saying “Are you sure? This is only necessary after direct DB edits or during development”

    My issue is that when a user adds or edits a listing in GD using front end, the meta data is not shown on the listing until the Object cache is flushed.

    I suspect this is because GD stores the meta in custom table, and inputs the data using its own DB functions.

    Is there anything I can do to stop this issue?

    I will attach ways to replicate the issue in a private post below.

    Thanks,

    Emlyn

    #468268

    Emlyn Jones
    Full Member
    Post count: 32
    This reply has been marked as private.
    #468275

    Emlyn Jones
    Full Member
    Post count: 32

    SORRY! I have created a workaround for now (run wp_cache_flush() on init hook) – this lets things work for now, but obviously is not a long-term solution 🙂

    I have a live demo to do in a few hours and I need it to work for that – I will discuss further once that is over 🙂

    Emlyn

    #468304

    Alex Rollin
    Moderator
    Post count: 27815

    Thanks Emlyn, and glad you found a workaround, for the moment.
    Please post back if the issue persists.

    #468654

    Emlyn Jones
    Full Member
    Post count: 32

    Hi Alex,

    Thanks – the demo is over and I think it went well, thankfully. It would be good to address this if possible, though?

    I have another topic open with you guys, and it is very likely a duplicate of this to be honest.

    Look forward to hearing from you 🙂

    E

    #468705

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #468719

    Emlyn Jones
    Full Member
    Post count: 32
    This reply has been marked as private.
    #468722

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #469144

    Emlyn Jones
    Full Member
    Post count: 32

    Hey 🙂 Any joy on this?

    #469146

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #469158

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #469162

    Emlyn Jones
    Full Member
    Post count: 32
    This reply has been marked as private.
    #469390

    Kiran
    Moderator
    Post count: 7069

    Hello Emlyn,

    This has been fixed and updated on your site too.

    Please check after clearing your browser cache and let us know.

    Thanks,
    Kiran

    #469399

    Emlyn Jones
    Full Member
    Post count: 32

    Hi Kiran,

    Thanks for letting me know.

    Can you please let me know what the problem was, and how it got fixed, please?

    Thanks,

    Emlyn

    #469644

    Kiran
    Moderator
    Post count: 7069

    With object cache it was not clearing early stored cache.

    See patch here: https://github.com/AyeCode/geodirectory/pull/614/commits/402ca203b2219ed9a259e4fe9f88a19a6f6e0a08

    Kiran

Viewing 15 posts - 1 through 15 (of 17 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket