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.
| Comment | File | Size | Author |
|---|---|---|---|
| Screen Shot 2023-06-24 at 12.37.10 PM.png | 82.81 KB | hungdo |
Comments
Comment #2
fgmThe
drush crcommand actually invokesdrupal_flush_all_caches()by way ofdrupal_rebuild().See for details:
This
$settingslisting is incomplete. Could you paste all the memcache-related lines ?