Expiring media

From Wikanual

Jump to: navigation, search

Contents

Expiration

You can set an expiry date in INTERDUBS for files and logins / reels. Expired items are not visible on the client side any longer. They have a blue-gray background in their listings in the admin interface.

Files that will expire have an hourglass after their name.

remove expiration

An expired file or login will have a blue background in the admin interface. You will also find the word [expired] and a link that will let you un-expire the item.

In order to 'unexpire' file(s) or set a new expiration date select it/them and then select the edit title. You will find the selection in the bottom.

In order to 'unexpire' a login / reel or set a new expiration date select the edit login.

ways to specify no expiration

If you remove the text from the expiration field you can remove the expiration. Likewise you can specify it via the words never or none. The display of no expiration however is usually indicated by an empty expiration field.

remove expiration for multiple files and folders

You can unexpire multiple files in a listing by selecting them with the check box on the left. Then click on

 remove expiration


in the menu that appears on top of the listing. If you select a folder then the expiration gets removed from all files and folders contained in the selected one.

Alternatively you can set a new expiration date via the

 edit title function

remove expiration for all files

Should you like to remove the expiration for all your files then please get in touch. It can be done very easily on a database level.

default Expiration

The default media expiry is been set with the config variable Expiry default, it starts out as 60 days.

The default of 60 days does not imply that INTERDUBS only can store files for that long. It just seems to be a reasonable default. Please do adopt this default to the needs of your production.

If you like files to never expire simply make the value empty.

folder controlled expiration

You can also control the expiration date of files via Folder controlled expiration.

Expiration Format

You can set the time and day of media in various formats:

no expiration

To set no expiration in the following ways:

none
never
empty text

counted items

You can also specify the expiration by entering a time period:

days

XXX days

If you enter a number and the word days then interdubs will calulate the expirations in the future in XXX days.

weeks
XXX weeks

Similarly you can specify an expiration in XXX weeks

hours
XXX hours 

even hours work.

months
XXX months


And so do months. Months are actually treated as 30 days. Please use the date option below if you like to specify an exact date in the future.

years
XXX years

years are based on 365 days

date

Expiration can also be set with a specific date. The following formats are possible when entering a date:

MONTH/DAY

If you have a single slash in your expiration specification then INTERDUBS will use the first number as the month and the next one as they day of the expiration. Should the date have passed this year already then it will be the date in the next year. Please use numbers for the month like 1,2, ... 12.


MONTH/DAY/YEAR

If you like to specify a year then you can do so as well. With this format you can also specify an expiration in that past. You can consider to hide media to get a similar effect though.


DAY.MONTH

Two numbers separated with a dot will be seen as the day in the western European format.


DAY.MONTH.YEAR

European date that works similar to the American one.


Size based conditional expiration

If you like to set different expiration policies based on the file size then you can do this as well.

You can set up many rules, the first one INTERDUBS finds that matches will be used.

An example might illustrate this:

>100MB 5 days, < 10KB 1 year, 99 days

Rules are being seperate by commas. If a rule starts with > for larger than or < for smaller than then INTERDUBS will compare the size of the file with the size definition that follows. Sizes have two parts:

- A number - A unit. There are 3 possible units:

KB for kilobyte
MB for Megabyte
GB for Gigabyte 

In the example above a file with 200MB would expire in five days. One that is smaller than 10Kb would expire in one year, and any file that is neither larger than 100MB nor smaller than 10Kilobyte would expire in 99 days.

Incomplete internationalization

Entering absolute dates in INTERDUBS for expiration is unfortunately not completely internationalized.

Timezone

INTERDUBS will ignore the timezone that you have set for the display of expiration in the edit file screen.


Date Display

The date will be displayed in MONTH / DAY / YEAR format

Entering Times in PDT

When you enter absolute times so you have to keep in mind that INTERDUBS is treating these times as PDT.

Internationalization

See Internationalization for details on how INTERDUBS tries to manage this topic.

Clean up of expired files

It is very easy to archive and clean up expired files. See Expired_file_cleanup

Personal tools