Closed (fixed)
Project:
Power Menu
Version:
7.x-2.0-beta1
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
8 Jan 2013 at 13:05 UTC
Updated:
15 Feb 2013 at 13:50 UTC
Jump to comment: Most recent file
When you change the field values on the menu item edit page (ex: admin/structure/menu/item/15483/edit)
The power menu cache is not cleared after submitting. People still see old values.
Adding a cache clear to menuFormSubmit, solved this for me.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | power_menu-cache_clear-1883110-4.patch | 3.17 KB | weri |
| #1 | power_menu-cache_clear-1883110-1.patch | 27.01 KB | weri |
| power_menu-cache_clear.patch | 592 bytes | nils.destoop |
Comments
Comment #1
weri commentedThat's right, the cache should be cleared when a menu item form is saved. But I would not clear the cache only in the PowerMenuPathHandler, because this cache clear makes sense for every plugin.
It would be great when you can test my appended patch. After that, I would commit it.
Thanks!!
Comment #2
nils.destoop commentedThe patch looks ok :)
Comment #3
nils.destoop commentedFound another issue.
When only editing the fields of power menu, no block cache is cleared.
This is because of this line in menu.inc
Comment #4
weri commentedYes the block cache should also be cleared. This is implemented.
I also have changed the power menu field entity caching behavior, because an entity was stored for every path. Now, the entity is only stored once per menu item and every path knows his lookup path (path for the menu item). Now it is possible to clear the cache for given menu item path. This was not possible before.
I have to test the changes before I commit it to the repo.
Comment #5
weri commentedSo, I tested this with different sites and it seems to work.
I will release a new beta soon. This includes also an important change in the naming of the bundles.