Skip to content

Reason that resource ID is appended in getCacheFilename()? #44

@j-craig

Description

@j-craig

On a few sites I'm using phpthumbof to resize/crop banner images supplied by the user. In this case, when the same image is used on several different pages, phpthumbof is generating different images for each different page. I can see from the source now that it is appending the resource ID to the end of the filename in phpthumbof.class.php, line 306.

In my eyes, I don't see the need to append the ID...but perhaps I am not thinking of a proper use case where this would be handy? For me it just adds extra copies of images, extra time to generate pages when the cache is cleared, and lessens the ability of the users browser to cache repeated images.

Also, thanks for your hard work! This is a very useful MODX addon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions