Even when imagecache is correctly configured, if you change the system-wide file path, derived images are not generated correctly. This is because imagecache registers a menu callback at file_directory_path() .'/imagecache' - and this is cached by the system.

Comments

lyricnz’s picture

Version: 6.x-2.0-beta10 » 6.x-2.x-dev
Status: Active » Needs review
StatusFileSize
new804 bytes

Here's a patch that clears the menu cache after the file-system form is submitted.

drewish’s picture

StatusFileSize
new1.17 KB

Makes sense. I don't think we need to be using module_invoke since it's a function defined in menu.inc so we can just call menu_rebuild() like core does. I also moved the code up to be with the other form alters.

drewish’s picture

Status: Needs review » Fixed

committed to 6.x-2.x

lyricnz’s picture

tx

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.