Support

Admin Tools

#35151 Auto clean temp directory?

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by on Saturday, 29 May 2021 20:17 CDT

designbybridge

I was just curious if there was a way to have Admin Tools automatically clean the temp directory every x days (for example). 

 

Thanks!

 

nicholas
Akeeba Staff
Manager
 

Extensions, Plugins, System - Admin Tools.  Set “Enable Temp-directory Cleaning” to Yes.

A new option, “Run every X minutes”, opens below it. SInce you want one month that would be 30 days times 24 hours a day times 60 minutes an hour equals 43200 minutes.

Click on Save & Close.

Please note that you set the minimum time between successive attempts to clean your site's temp directory. If your site serves a request and at least this much time has elapsed there's a 20% chance that the temporary directory will be cleaned. The 20% probability modifier is there to avoid race conditions on busy sites. That is to say, if your site is serving 10 or more concurrent requests we need the probability modifier to avoid two requests running Admin Tools trying to simultaneously clean the temp directory which would end in errors being printed to the site's visitor.

So, assuming your have at least a decent trickle of traffic (more than 100 page views a day) your temp directory will be cleaned every 30 to 31 days with these settings.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!