Closed (fixed)
Project:
Drupal.org infrastructure
Component:
Other
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
2 Dec 2013 at 01:53 UTC
Updated:
22 Jun 2014 at 15:40 UTC
Jump to comment: Most recent, Most recent file
This may be a Core issue or it may be a d.o issue...
So. If you go to a page like
https://drupal.org/node/1884796
and edit this book, changing its position in the outline, as I just did, it should invalidate the book navigation block. But it doesn't. The book outline shown is not updated.
So this page is currently really under
https://drupal.org/node/2116747 (Drupal 8 APIs)
but the book navigation is showing it under a page that doesn't even exist (see screen shot).
I tried editing the two pages I just moved both with the Edit button and with the Outline button, and neither one properly invalidated the book cache block.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | screen3.png | 36.63 KB | tvn |
| #9 | screen2.png | 37.38 KB | tvn |
| #9 | screen1.png | 17.7 KB | tvn |
| blockcache.png | 19.51 KB | jhodgdon |
Comments
Comment #1
tvn commentedSeems this is cache issue, the page is in the proper place now. I can't reproduce this on the dev site as well.
Comment #2
jhodgdonDoes the dev site have the exact same caching settings as the live site? I think the cache settings on the live site may be wrong. Or else there is a core bug that when you edit a Book page it should invalidate the cached Book navigation block.
Comment #3
tvn commentedDev sites are very different. staging will be closer (even though still not completely the same), can you test there?
Comment #4
jhodgdonI could do that tomorrow... What is the URL of the staging site, and can I use my own account to log in or is there a special account to use?
Comment #5
tvn commentedhttps://staging.devdrupal.org/, yes your usual drupal.org username/password
Comment #6
jhodgdonStaging is apparently down.
Fatal error: Unsupported operand types in /var/www/staging.devdrupal.org/htdocs/sites/all/modules/project_issue/views/project_issue.views.inc on line 192
Comment #7
tvn commentedIt probably was in the process of rebuilding at that moment.
Comment #8
jhodgdonI tested on Staging and it appears the block is not cached there. Book outline updates are immediately reflected in the book navigation block.
Comment #9
tvn commentedSomething is going on with the caching indeed. Just ran into this with https://drupal.org/stats. First I was changing the weight in the outline, to move the page up, but it wasn't moving in the nav block. Now as a logged in user, I don't see the book navigation block at all:
https://drupal.org/files/issues/screen1_17.png
If I go not to alias /stats but to /node/2183001 I can see the nav block, note the location of the page in it:
https://drupal.org/files/issues/screen2_14.png
As an anonymous user from another browser, I can see the nav block as well, however the page is located in a different place:
https://drupal.org/files/issues/screen3_8.png
Comment #10
jhodgdonYeah, I ran into this again today with
https://drupal.org/documentation/modules/basic_auth
but it seems to be in the correct nav now (at least while I'm logged in).
It's hard to make a reproducible report of this because by the time someone gets back to check, the cache has usually been cleared out.
Comment #11
tvn commentedCan anyone please take a look what's going on with the caching here?
Comment #12
dokumori commentedComment #13
dokumori commentedHad a quick look on local / d.o dev and it works just fine so I believe it is indeed a cache issue. Unassigning.
Comment #14
basic commentedI think the only difference between dev/staging and production at this point is memcache. This issue may be related: https://drupal.org/node/2027677
Comment #15
basic commentedI am unable to reproduce on dev with a single memcache bin enabled. This may be a problem with php-fpm, or with multiple memcache bins and separate bins used in production. I'll continue testing.
Comment #16
basic commentedmemcache api has been upgraded to 7.x-1.1-beta5+1-dev in production, but the issue of the block not updating after an outline change persists. I'll continue looking into this.
Comment #17
tvn commentedComment #18
tvn commentedWe switched block cache from memcache to database and this issue is fixed. Rudy is going to open core issue to make this actually work with the memcache.
Comment #19
tvn commented