Blog Sections Open

Improving phpThumb Cache Paths and Remote URL Handling in Evolution CMS

How to improve phpThumb handling for remote URLs and cleaner cache structures in Evolution CMS.

phpThumb setups tend to work for a while and then become hard to maintain: remote URLs behave differently from local files, cache directories get messy, and generated names become difficult to reason about.

The revised snippet in this discussion focused on three practical improvements:

  • handling remote URLs and local paths through one normalized flow;
  • building cache folders that reflect the source path more predictably;
  • generating stable filenames based on the resize parameters.

That kind of refinement matters on real Evolution CMS sites because image transformations quickly become part of the site’s infrastructure. Once thumbnails are used everywhere, path clarity and cache predictability are no longer nice-to-haves.

This is a good example of a Best Practices article rather than a one-off bugfix: the same ideas apply across many legacy phpThumb integrations.

Newer post

Choosing the Right Sender Address for FormIt and AjaxForm in Evolution CMS

Why emailsender is not always the right from-address for public forms and how to configure safer sender details for FormIt and AjaxForm.

Older post

Generating sitemap.xml for Large Evolution CMS Sites Without Timing Out

What to do when sitemap generation times out on a large Evolution CMS site with tens of thousands of resources.