I ran into a few issues while writing unit tests for Features & ImageCache integration:

- imagecache_presets($reset = FALSE) does not pass on $reset to imagecache_preset_actions(). This means you may get stale static cached actions on the presets returned.
- imagecache_preset_actions($preset, $reset = FALSE) does not properly clear its static cache.
- imagecache_preset_by_name() has an unclearable static cache.

The attached patch addresses these issues.

CommentFileSizeAuthor
imagecache_clear_static_caches.patch1.89 KByhahn

Comments

fizk’s picture

Status: Needs review » Closed (fixed)
Issue tags: +ImageCache 2.x Todo

Marking as ImageCache 2.x Todo.