humanmade/WPThumb — pull request #63 by mattheu (2013-04-04 13:32:16+00:00)
Title: Fix cache subdir

When working out the cache directory, the subdir used was that returned from wp_uploads_dir(), and therefore the current directory path, which changed each month. This means that the cache is fully regenerated each month.

Fix this by deriving the subdir from the original file path.

Also do this for theme files passed through wpthumb.