Skip to content

AI & API

Solutions to Reduce Web-to-Print Server Disk Space Usage

Saved designs, uploaded images and order files fill a web-to-print server until it runs out of space and the site can crash. Instead of buying ever larger hosting, add a design manager that deletes design files after an expiration date you set, and sync each order's compressed files to cloud storage such as AWS S3.

By , Founder & CEOOriginally written by Lynn JonesPublished Updated

Requirements

  • A self-hosted web-to-print store (for example the Printcart WordPress print shop store)
  • Admin access to the store and its server
  • An AWS account with an S3 bucket, for the storage sync
  • Both functions are custom add-ons, not part of the standard product

Key takeaways

  • Every saved design, uploaded image and order adds files to the server; over time disk usage approaches 100%.
  • Upgrading the hosting package again and again is costly, and some hosts will not take very data-heavy sites.
  • A design manager deletes design files manually or automatically after expiration dates set per customer group, and emails the customer.
  • Customers see their designs in My account, with a warning one week before a design is deleted.
  • Syncing each order's compressed files to AWS S3 keeps them off the web server; the admin downloads them from the dashboard.
On this page

What is server disk space?

Websites are hosted on servers, which are powerful pieces of hardware that house websites and data related to those sites. Every component of your website is stored on a server and accessed through your web host.

Servers are physically located in data centers, which are typically run and managed by different web hosting companies.

In hosting, disk space is the amount of space available on the server for storing the content of your site. This content includes pages, images, videos, files, databases, among others. In some cases, it can also be used to store emails, but this is not a rule. When you host a website, all your content is stored in that space. As you update it, new content is being stored. This is done automatically and no action is required.

Web hosts provide the technology and server space required for your website to be accessed on the Internet. This allows users to search for your site and view your web pages online.

Why is disk space a big issue for web-to-print?

To survive the die-hard competition of the present eCommerce print industry, businesses are now offering digital storefronts. Customers are now capable of ordering a product online or even customizing it based on their preferences. And web-to-print technology has become an exceptional solution for them, no doubt.

Web-to-print helps printers with faster and efficient production as well as enhances customer experience level and satisfaction. It’s more than online shopping for customers and print solutions for businesses.

If a web-to-print doesn't have its own in-house print shop, it will partner with one. Print projects can include anything from business cards and brochures to posters and pop-ups.

As time goes by, the business gets bigger with hundreds of orders a day. You might need a good design management system to avoid unnecessary mistakes. A large quantity of saved designs, uploaded images on your server disk space is also a considerable problem.

Your server disk space has a critical role in keeping your website’s availability higher and supporting all the storage-related operations. The more images you upload, the more orders are made with saved product designs, the more disk space your site will occupy. Over time, your server and applications data take up more space, which gradually approaches 100% disk capacity. After a while, you may find that there’s no more disk space available. Running out of storage is an unfortunate event and can render your server unavailable, crash your website, worst of all, destroy your visitor’s experience.

Optimizing server performance is important in supporting the end-user experience. Web server monitoring and optimization help you to troubleshoot bottlenecks as they emerge and keep the site fast for your customers.

How can a web-to-print store free up disk space?

Some web-to-print owners choose to buy additional disk space for their websites by upgrading the hosting package. However, this option will cost you tons of money because you have to keep upgrading your hosting package to be fitted with your business expansion. In addition, some hosting suppliers don’t have the packages to support your requirements or refuse to host an extremely data-heavy website. In that case, you have to consider switching to a different hosting provider.

Understanding that this challenge might cause every web-to-print owner frequent headaches, we have spent time investigating to find solutions for this issue. These 2 following solutions are the ones our clients with a Printcart WordPress print shop store asked about most.

If you are looking for a solution to monitor and optimize the server disk space of your web-to-print you could consider and choose to integrate one function on your website.

Note: those functions are additional services, not included in Standard products.

1. Designer Manager Function Integration

This design manager function allows to manually and automatically delete existing design files from the website server to free up disk space. The admin could choose to manually delete design files from one user or automatically delete design files that reach the expired date. The feature is described in the following flowchart to make it easier to understand.

Flowchart of the design manager: how saved, ordered and dropped designs are kept or deleted after their expiration date

We developed a separate dashboard in the back-end for the admin to manage all those design files from customers. This dashboard contains 2 tabs:

  • Printcart Management: It shows a List of designs filtered by the user. The admin could check and manually delete each or multiple design files from the list. After the file is deleted, the system then sends a notification email to the customer. Those deleted files are saved to delete logs. The admin could view the log of deleted designs later if he/she wants.

  • Setting tab: It calculates the days from the date one design file was created. The admin could set up the expired time. When an existing design file reaches the expired time, it is automatically deleted from your server.

The admin also could set up the email content to be automatically sent to the customers once the design file is deleted.

There are different cases applied for per customer group:

For registered customers:

  • If they design, click on the Save for later button on the editor page, all data will be stored in the database with the time admin setting (taking from setting Saved design Expiration Date).

  • If they design, click on Process button and then Checkout, all data will be stored in database and server disk with the time that admin setting (taking setting from Design attached to order with customer Expiration Date).

For non-registered customers:

  • If they design, click on Process button and then Checkout, all data will be stored in the database with the time that admin setting (taking setting from Design attached to order with guest Expiration Date)

For both registered and non-registered:

  • If they design then drop the design, upload design, or upload image on the editor, all data are stored on the database with the time admin setting (take the setting from Dropped Design Assets Expiration Date)

  • Dropped design assets should include both scenarios:

  • Assets uploaded in Upload Design functionality

  • If pressing 'Process', Printcart generates design data/files stored in the database and disk

The system automatically deletes design files that expire during the day and sends emails to customers.

For end-users, they could manage which files are deleted, which will be deleted in 1 week, or reset the expired time. All in buyer dashboard.

From My account -> My design

  • It shows all user’s design files. The user could edit the design, save for later or reset the time.

  • There is a warning shown 1 week before the design is deleted and one after the design is deleted. The warning also comes with an option to never show again.

2. AWS S3 Storage integration

Amazon Simple Storage Service, widely known as Amazon S3, is a highly scalable, fast, and durable solution for object-level storage of any data type. Unlike the operating systems we are all used to, Amazon S3 does not store files in a file system, instead, it stores files as objects. Object Storage allows users to upload files, videos, and documents like you were to upload files, videos, and documents to popular cloud storage products.

This makes Amazon S3 very flexible and platform agnostic.

To avoid your server disk space running out of storage, instead of storing your uploaded images or design files on your server, we synchronize output files to Amazon S3. Here is how it works.

How the AWS S3 sync works: design files of one order are compressed into one folder, uploaded to S3 and downloaded from the dashboard
  • When users design online or upload design files, the system compresses all images and design files of the same order in one folder. The folder name is the order number. This folder contains all images, design files, and the order summary.
  • When users edit the design or reupload design files, the system recompresses all design files again in one folder. The folder name is the order number. This folder contains all images, design files (latest, updated), and the order summary.
  • After the files are compressed, the zip files are uploaded to AWS S3 storage in specific folders. Then, the admin could download the zip files from the dashboard.

Costs grow or shrink with the amount of data you store.

Besides the AWS S3 storage, you could also consider other cloud storage such as Google Cloud Storage, Dropbox, etc... All of them have their own strong and weak points. Choosing one depends on your needs and business requirements.

There are quite a few things that can eat up your disk space. Finding the cause can be tricky, but it is worthwhile because cleaning up your disk space can make your site faster, more efficient, and can save you money. There are so many tips out there to reduce your site's disk space usage. However, in this article, we only mentioned these 2 solutions which we thought are useful tips for web-to-print.

These two functions free up website disk space periodically, so you do not have to upgrade your hosting package as often.

If you need assistance with your disk space issues, get in touch.

Can Printcart add these functions to your store?

As an experienced software and website development company, we're focused on developing technologies that respond to our clients in the printing industry needs. We deliver custom-built eCommerce web to print solutions, third-party plugins integrations, and all the eCommerce related-services that help your printing business to grow.

Web-to-print opens the door to infinite possibilities for you to customize your print business infrastructure. Moreover, your customers and prospects get the ultimate freedom to personalize their products based on their tastes and preferences.

However, there is no web-to-print solution that could give you a management system that could exactly fit your business model and printing industry needs. All ready-to-use solutions are built to meet standard requirements only. If you want to achieve your unique business needs, you could consider upgrading the standard solution by customizing some existing modules or adding new features. Printcart could help you to customize the standard tools or develop any kind of software as per your request.

If you are interested to add this design management function to your website, or you are intending to build an eCommerce website for selling personalized products but do not know where to start, contact us at support@printcart.com or sales@printcart.com for a quote.

Frequently asked questions

Why does a web-to-print site run out of disk space?

Because every uploaded image, saved design and ordered design is stored on the server. As orders grow, these files fill the disk until the site can become unavailable.

How does the design manager decide what to delete?

The admin sets expiration dates per case: saved designs, designs attached to orders of registered customers or guests, and dropped design assets. Files that reach their date are deleted automatically and the customer is emailed.

Are customers warned before their designs are deleted?

Yes. In My account, customers see a warning one week before a design is deleted, and can edit the design, save it for later or reset its expiration time.

Are these functions included in the standard Printcart store?

No. The design manager and the AWS S3 storage integration are additional services, not included in the standard products.

About the author

Founder & CEO, Printcart

Huy Nguyen (David) is the Founder and CEO of Printcart. Questions about this article go straight to him and the Printcart team. This article was originally written by Lynn Jones for the Printcart blog.

LinkedIn

Tell us what you want to sell. Huy Nguyen (David), our CEO, and the sales team reply on WhatsApp and by email with a written scope and quote.