• For admins, working on the admin Dashboard, creating Posts or Pages or menus the APCu cache should be skipped, because in some cases it overwrites Posta or Pages or Revisions which could have content lost

    On line 17
    if ( is_admin() || ( defined( 'LOGGED_IN_COOKIE' ) && isset( $_COOKIE[ LOGGED_IN_COOKIE ] ) ) ) {
    return;
    }

    or add a flag in settings to skip the cache

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Pierre Lannoy

    (@pierrelannoy)

    Well, you will have to explain more this one…

    Why do you think APCu Manager “overwrites Posts or Pages or Revisions”? Based on what (reproducible) use-case? What is the 3 lines you suggest? In what files do you think it should be?

    And, ultimatly, have you read the 2 last questions of this plugin’s FAQ?

    Thread Starter nyros78

    (@nyros78)

    Hi

    On production, with APCu enabled, if I go an create a post (P1), I put all the details and save, it works.
    After the save, create a new post (P2) from admin, do all the required fields and Save it.
    Now, P2 should be visble, but P1 content it’s gone and looking on Revisions you can see the changes there. Basically the Id of P1 is taken by P2 on save because the cache. This happens in 80% of the cases.

    Those 3 lines were supposed to go to plugins/apcu-manager/assets/object-cache.php

    Thanks

    Plugin Author Pierre Lannoy

    (@pierrelannoy)

    Hello @nyros78 🙂

    I’m definitely unable to reproduce this error on fresh WP instance (WP 7.0.2 and APCu Manager 4.5.3).

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.