Problem/Motivation

Current revision of node is the old one in stead of the latest revision.

Our site is using memcache on aws server and has a cron job service that goes through all the nodes and update them if needed, we clearly set the default revision is that latest one but it is still showing the old one as current revision.

If we clear the cache but clicking on the Clear All Caches button (/admin/config/development/performance) then the current revision is showing correctly. However if we execute drush cr or drush ev 'drupal_flush_all_caches();' the current revision is still old.

Here is our setting

$settings['memcache']['bins']['render']     = 'node001';
      $settings['memcache']['bins']['data']       = 'node001';
      $settings['memcache']['bins']['discovery']  = 'node001';
      $settings['memcache']['bins']['config']     = 'node002';
      $settings['memcache']['bins']['entity']     = 'node002';
      $settings['memcache']['bins']['static']     = 'node002';

Do you any ideas why it is happening? why hitting the Clear All Caches button works but drush command doesn't? Am I configuring the memcache bins not properly? Thanks alot for your support.

CommentFileSizeAuthor
Screen Shot 2023-06-24 at 12.37.10 PM.png82.81 KBhungdo

Comments

hungdo created an issue. See original summary.

fgm’s picture

Status: Active » Postponed (maintainer needs more info)

The drush cr command actually invokes drupal_flush_all_caches() by way of drupal_rebuild().

See for details:

This $settings listing is incomplete. Could you paste all the memcache-related lines ?