Skip to content
This repository has been archived by the owner on Oct 13, 2020. It is now read-only.

Use relative path when generating cache filename #18

Open
mattheu opened this issue May 14, 2012 · 5 comments
Open

Use relative path when generating cache filename #18

mattheu opened this issue May 14, 2012 · 5 comments
Milestone

Comments

@mattheu
Copy link
Member

mattheu commented May 14, 2012

Just wondering what you think about this @joehoyle

The filename is generated using the Args and the file path.

If you move the site to a new server, the file path will probably be different.

This is an issue for inline images added to the post content if the cache folder is not moved - as the new image will have a different filename.

Not really sure if this is a bug as such, and inline images will always cause problems as they would not cause WPthumb to regenerate the thumbnail anyway so we are always reliant on the cache folder but I just thought I would mention it as it doesn't seem ideal.

@joehoyle
Copy link
Member

Hmm good point. We should generate the cache filename from relative paths

@willmot
Copy link
Member

willmot commented May 14, 2012

+1

@mattheu
Copy link
Member Author

mattheu commented May 14, 2012

That's what I thought... My concern was with backwards comparability though. Not that it would break, but that you could end up with a lot of duplicate cached images.

On 14 May 2012, at 10:12, Joe [email protected] wrote:

Hmm good point. We should generate the cache filename from relative paths


Reply to this email directly or view it on GitHub:
#18 (comment)

@joehoyle
Copy link
Member

Yes, this is an issue. Changing any behaviour is problematic. I think we may have to build in some kind of versioning backwards compat for when we make this kind of changes,

On Monday, 14 May 2012 at 10:11, Matthew Haines-Young wrote:

Just wondering what you think about this @joehoyle

The filename is generated using the Args and the file path.

If you move the site to a new server, the file path will probably be different.

This is an issue for inline images added to the post content if the cache folder is not moved - as the new image will have a different filename.

Not really sure if this is a bug as such, and inline images will always cause problems as they would not cause WPthumb to regenerate the thumbnail anyway so we are always reliant on the cache folder but I just thought I would mention it as it doesn't seem ideal.


Reply to this email directly or view it on GitHub:
#18

@willmot
Copy link
Member

willmot commented May 28, 2012

I think doing this will rely on #21

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants