Skip to Content
Site setupSite settings

Platform, data retention and files

Run background jobs by cron, turn on performance mode and automatic updates, know when to use debug mode, set how long logs are kept and move uploads to S3.

The "Advanced" group affects the speed and upkeep of the site: where background jobs run, whether pages are cached, how long logs live, where uploaded files are stored. All three sections are shown only to the owner with admin.boss, and most fields ask for your password before saving.

Background jobs by cron

Without cron the site sends mail, cleans up and updates while visitors open pages, and pages slow down. With cron these jobs run on the server's schedule.

Copy the command

AdminSettingsPlatform. At the bottom of the section, the "Scheduler command" row already holds a line built for your server:

* * * * * /usr/bin/php "<SITE_DIR>/flute" cron:run >> /dev/null 2>&1
The Platform section with the Scheduler command row

Add it to the server scheduler

Over SSH, open crontab -e and paste the line. On hosting without SSH, add it in the "Cron jobs" section of the hosting panel. The line starts the site's jobs every minute.

crontab -e

Turn on the switch

Turn on "Run background jobs by the server scheduler (cron)" and save the section. Without the line in the scheduler, these jobs then do not run at all.

If the row says "Could not automatically determine a 100% valid PHP CLI path", check the php part of the line and replace it with the path to your server's PHP CLI. In a Docker install the cron container runs the command every minute, so you do not need to add the line.

The scheduler is not running

Cron is on, but background jobs have not run for a while: mailings, cleanup and checks are on hold. Check that the line is in crontab -l and the PHP path is right. The "Open jobs" button leads to the scheduler screen.

Performance and updates

FieldDefaultWhat it changes
Performance Modeoffthe site remembers the results of slow operations and ready pages for guests. Changes reach visitors a few minutes later
Persistent database connectionsoffonly for a VPS or a dedicated server. On shared hosting the site may fail with "Too many connections"
Automatic updatesoffonce a day the site installs new versions of the engine, modules and themes by itself. Works only with cron, see Updates
Create Backupsonbefore every update a copy of the replaced files is saved, so the update can be rolled back. Copies of the site files and database are covered in Backups

"More options" holds "Page compression" and "103 Early Hints" (both "Automatic"), "Convert Images to WebP", "Compress styles and scripts", "Support older browsers in styles" and "Send error reports to Flute". They are usually left alone: "Compress styles and scripts", for example, is turned off only while you look for a fault in the site's design. "Form forgery protection (CSRF)" is there too: turn it off only for a short test.

Debugging

"Debug Mode" shows the full error text instead of the "something went wrong" page. Every visitor sees it unless your IP is in "Addresses that see error details"; your address is offered in the list. "Development Mode" rebuilds styles and scripts on every page view and slows the site down noticeably; it is meant for work on a theme or a module.

Debug mode shows the full error text and request details to visitors.

This banner stays while debug mode is on. Add your IP to the address list, or turn debug mode off once you have found the cause.

Data retention

AdminSettingsData retention

The section sets after how many days the site deletes logs and activity traces. Payments, invoices and total playtime on a server are never deleted.

FieldDefault
Audit log180 days
Payment notifications90 days
Commands to servers90 days
Read notifications90 days
Unread notifications180 days
Play sessions90 days
Daily playtime400 days
Server online history30 days

Player and server activity charts are built from "Daily playtime" and "Server online history". A shorter term makes the charts shorter.

File storage

AdminSettingsFile storage

By default every file is kept on the site server. In "Where to keep" you can switch "Public files" (avatars, pictures, the media library), "Private files" (such as transfer receipts) and "Backups" to "S3 storage". Files uploaded before stay on the server; new ones go to S3.

The File storage section with the Where to keep and S3 connection blocks

In the S3 block, fill in "Bucket", "Access key", "Secret key" and "Region". Leave "API address" empty for Amazon S3; for other providers enter their S3 API address: Cloudflare R2 https://<account id>.r2.cloudflarestorage.com with region auto, Backblaze B2 https://s3.<region>.backblazeb2.com, MinIO http://address:9000 with "Bucket in the address path" on. "Address for visitors" is needed when a CDN sits in front of the bucket.

Save the section and click "Check" in "S3 check": the site writes, reads and deletes a test file. The bucket's assets/ folder must be readable by everyone, and the rest closed.

Not saved: with these settings private files in the shared bucket are open to everyone

The whole bucket is publicly readable, so private files and backups in it can be downloaded by direct link. Open only assets/ for reading (the policy is under "Check") or give private files and backups a bucket of their own.

If the top of the section says "The S3 library is not installed", run on the server:

composer require league/flysystem-aws-s3-v3

Next

On this page