This is a problem I'm struggling with for a few months already. I'm maintaining a pretty big news website, with a lot of content and multiple editors. The website is using
paragraphs (which I don't think is relevant to the core of the problem, but is relevant for the description of it) and
Memcache modules. Editors can rearrange the blocks on the front page, add/edit articles etc. The problem is that occasionally (and sometimes pretty often) when editors will do something on the website (edit article, rearrange blocks), change won't be visible on the website. It won't be even visible in the edit form of the just edited node when they will try to edit it again. It will appear after few approaches.
I know that in fact the change is being made after the first time, because I can reappear it with the
dmemcache_object()->flush();, which made me think that it is a problem with
Memcache. However, I replaced it with
Redis and there is no improvement.
Some more information about the problem:
- Core cache is basically disabled as we are caching everything in the CDN, but editors have direct access to the website, without CDN, and experience this problem there, so it is not CDN related. Below are website's cache settings.
- I cannot reproduce the problem locally, even if I'm also using Memcache/Redis.
- Sometimes when they are creating a new node with
paragraphs, it appears "empty". During the edit, there are also no paragraphs. However
dmemcache_object()->flush();seems to fix this problem and makes everything appear (I tried it few times).
- I tried even to add
dmemcache_object()->flush();to the save/update hooks, but it didn't help.
Any ideas of what can I do to diagnose and fix this problem? It is particularly hard to approach because it happens only on the production server.
redis module, and adding to
$conf['path_inc'] = 'sites/all/modules/contrib/redis/redis.path.inc';
Problem expanded on paths. Some nodes had paths in the form of node/[node_id], but after removing this line, and clearing cache - proper, aliased paths has been restored.
Note: database is located on the different server.