Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-10-06 20:50:48

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

uploading/editing a file should update the "lastmod"

Hi devs.

The subject says almost all.

On txp_file.php, the function update_lastmod() is only triggered when deleting a file or when files are edited (change category, change author) via the multi-edit functionality in Files.

But it isn’t triggered when uploading a new file, or editing an existing one.
Looks like an omission, and it is inconsistent with what happens, for example, when you add/edit a new link (in Links).

This change will make TXP play nicely with aks_cache (which cleans the list of cached items on website update, by looking at the “lastmod” value), and probably will be more correct when TXP is set to send Last-Modified headers.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#2 2011-10-18 07:21:37

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: uploading/editing a file should update the "lastmod"

Thanks for the report. Fixed in change set 3595.

Offline

Board footer

Powered by FluxBB