Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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.
Offline
Re: uploading/editing a file should update the "lastmod"
Thanks for the report. Fixed in change set 3595.
Offline