Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2019-11-12 19:20:22

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,137
GitHub

Files should have an optional expiration date, like Articles

Light bulb moment.

Have we covered this before? I’ve searched and nothing was forthcoming, but I’m still searching.

Offline

#2 2019-11-12 19:24:17

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,075
Website Mastodon

Re: Files should have an optional expiration date, like Articles

gaekwad wrote #320029:

Light bulb moment.

would files be deleted from the file system after they expire? cool if that could actually happen


…. texted postive

Offline

#3 2019-11-12 19:27:27

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,137
GitHub

Re: Files should have an optional expiration date, like Articles

bici wrote #320030:

would files be deleted from the file system after they expire? cool if that could actually happen

There’s no in-built cron scheduler in Textpattern (hence why logs are culled only when the logs page is viewed, that triggers the cleanup), so I would imagine the same situation with expired files if it was to be that way.

…but then expired Articles aren’t deleted, so why should Files be different? Curious, not intended to sound confrontational.

Offline

#4 2019-11-12 21:31:14

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,075
Website Mastodon

Re: Files should have an optional expiration date, like Articles

right. i hadn’t thought that through… of course if an article with a image were to expire, that the image should not, can not, be deleted.

I was thinking more of an image/file etc that was made available for download and not part of article. I could see a use for an option to have the image/doc “expire” or deleted at a set time.


…. texted postive

Offline

Board footer

Powered by FluxBB