1. Home
  2. Framework
  3. How To Configure Snapt Cache

How To Configure Snapt Cache

What is the Snapt Cache

The Snapt Cache module is a powerful, feature-packed web cache and frontend for the cache server. Among many features, it includes reports, monitoring, a full configuration editor and much more. Caching is especially useful as it serves static content faster than requesting it from a web application, for example as it bypasses database queries.

Below is a quick and simple setup guide for the Snapt Cache.

Basic Snapt Cache Setup

After you’ve installed the plugin, you can go to the Cache Dashboard. You will see that the Snapt Cache is not running. This is because you first need to configure the cache.

screencapture-192-168-186-3-8080-snaptSquid-status-1494922893659.png

Step 1: Click on Cache. You’ll then be required to configure the Cache plugin

screencapture-192-168-0-88-8080-snaptSquid-installer-1494931353629.png

Should you not be able to continue with integration, you’ll first need to install “squid” on your system.

screencapture-192-168-0-88-8080-snaptSquid-installer-1494931716599.png

Edit any paths that are different on your system

Step 2: Configuring the Cache Plugin. We will be making use of the wizard.

Squid3.PNG

Wizard Step 1 / 6

Listening Options:
First you’ll be able to set your preferred listening IP’s and ports. Default is “All”

IP-Port.PNG

Timeouts:
This section allows you to set custom cache timeouts. Should you wish, you can change these settings according to your needs. You may leave this as default.

Timeouts.png
DNS:
This section allows you to set or change Domain Options according to your needs. Please note that you are required to add DNS Nameservers, or you may use the “Use OpenDNS” button to populate the field.

DNS.png

Wizard Step 2 / 6

Engine Options:
This section will allow you to set custom limits for your cache. You may leave this as default and commit.

Engine_Options.png

Wizard Step 3 / 6

Cache Directories:
The cache directories section allows you to create and set the location where cached content will be stored. Please ensure this directory has read+write permissions set.

Cache_Directory.png
Directory_Confirm.PNG

Wizard Step 4 / 6

Logging Options:
Under Logging Options, you’ll be able to set and configure various logging options based on your requirements.

Logging_Options.png

Wizard Step 5 / 6

Error Pages:
This section of the wizard will allow you to set up your error pages. You may choose to use the existing pages or create your own. You can also change the logo to your own brand image.

ErrorPage.png

Wizard Step 6 / 6

ACL Management:
Here you have the choice to let Snapt manage your ACL’s or choose advanced mode if you prefer to manage them yourself.

ACL.PNG

Finish:
After you’ve completed the wizard, you’ll be presented with the following screen below. If all of your settings are correct and displaying green you can click “Finished”.

Finish.PNG

Starting Cache:
Now it’s time to start your cache engine by clicking on the “Start Cache” button as seen on the screenshot below.

Start.PNG

Success:
The UI should report “Cache started successfully” if all is in order.

Success.png

Updated on August 6, 2019


Was this article helpful?

Related Articles