Skip to content

Commit

Permalink
Update regular_maintenance.md
Browse files Browse the repository at this point in the history
  • Loading branch information
drbyte committed Mar 28, 2021
1 parent 5d082bf commit e24e850
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions content/user/running/regular_maintenance.md
Expand Up @@ -16,3 +16,32 @@ This is a partial list of regular maintenance activities you should do on your s
- Use [Google Chrome Inspect](/user/running/inspect/) or [PageSpeed Insights](https://developers.google.com/speed/pagespeed/insights) to test the performance of your site and look for problems. Many other web page speed testing tools exist; try them too.
- Optional: Run "Optimize Database" from [Admin > Tools > Store Manager](/user/admin_pages/tools/store_manager/).


## Cleaning Up Disk Space

Periodically deleting from your website server all files that are no longer needed can go a long way to keeping your site running speedily and not triggering "out of disk space/quote" issues with your account.

It also makes your backups speedier and smaller, which helps both you and your customers and your hosting company.

Images and old backups are the biggest consumers of disk space.

Things to consider cleaning up:

- ancient files in the `/logs` folder (you can use the Display Logs tool in `Admin->Modules->Plugin Manager->Display Logs` to purge log files)
- temporary directories you've created for any reason, including temporary "backups" of old files or old directories as is often done when doing upgrades
- database backups that you might have generated, including but not limited to those in the `/admin/backups` directory (see NOTE below)
- old files in the `/images` directory and subdirectories such as for old products or wrong images you no longer use. These can take a lot of space.
- no-longer-needed artwork uploaded by customers (when they placed an order) in the `/images/uploads` directory (see NOTE below)
- ancient files in the `/cache` folder (see NOTE below)
- ancient files in the `/pub` folder (see NOTE below)
- no-longer needed files in the `/download` folder (see NOTE below)
- old templates you no longer use, especially their images and javascript files
- admin activity logs -- should be exported via the Admin console and saved to your PC, and then the log reset via the Admin page. See the link in the section above.

> **NOTE:** Any of these directories that contain a ".htaccess" or "index.php" or "index.html" or "index.htm" file should keep those htaccess and index files because their purpose is usually to prevent unauthorized access to all the other files in those same directories. So, don't just delete the directory or everything in them. Keep these protective files as-is, and be sure to upgrade them between Zen Cart versions if changes have been made.
Also worth cleaning up, if you understand databases:

- email archive history, if enabled, can consume a lot of disk space. If you have it enabled but never use it, turn it off and empty/truncate the email_archive table
- payment module logs: if you're using a payment module which logs all its activity into the database you might explore exporting that table and truncate/emptying it

0 comments on commit e24e850

Please sign in to comment.