+4981217607887 hallo@panomity.de

Panomity WP Cache

Panomity WP Cache is a simple full-page cache for WordPress, distributed under the open-source GPL v3 license. It stores reusable page output so cache hits can avoid repeated server work.

LEARN MORE!
Lena presenting caching website content

Sustainable Cloud Hosting

Start reducing your CO2 footprint today!

Reduce repeated server work with Panomity WP Cache

Panomity WP CachePanomity WP Cache stores a reusable version of a WordPress page and can serve it directly on a cache hit. The server then does not need to generate the same page for every request.

Fewer repeated requests can lower CPU and memory work for pages that are served from cache. The effect depends on the cache rules, content and traffic pattern.

For extended cache controls, see Panomity WP Turbo.

Choose the right hosting plan

Compare current plans and included features in the customer portal. Check storage, billing periods, setup fees and taxes applicable to your account before ordering.

Compare hosting plans

Necessary web server customizations

Panomity WP Cache and Apache Web Server
Follow these steps to add the Apache configuration code to .htaccess in cPanel:

  1. Log in to cPanel.
  2. Navigate to the File Manager, which is usually located in the Files section.
  3. In the file manager, browse to the root directory of your website. This is usually the public_html directory.
  4. Locate your .htaccess file and click on it to select it.
  5. Click the “Edit” button at the top of the file manager.
  6. In the text editor that appears, paste the Apache configuration code below.
  7. Click the Save Changes button at the top of the text editor to save the changes to the .htaccess file.

That’s it! The Apache configuration code should now be added to your website’s .htaccess file and take effect immediately. Remember that syntax errors or misconfigurations in the code can cause problems with your website. Therefore, test your website thoroughly after making changes to your .htaccess file.

# Serve index.php from the cache

RewriteRule ^/index.php$ /wp-index-panomity.php [L]

# Set the index files to try
DirectoryIndex wp-index-panomity.php index.php index.html index.htm

# Try the requested file or directory, then the cache
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /wp-index-panomity.php?$1 [L,QSA]

Explanation of what you do here
The RewriteEngine directive enables the use of mod_rewrite. The [L] option takes care of aliasing /index.php to /wp-index-panomity.php.
The DirectoryIndex directive specifies the list of index files to try.
The RewriteCond directives check whether the requested file or directory exists.
The RewriteRule directive with the [QSA] flag passes the query string to /wp-index-panomity.php.

Panomity WP Cache and NginX Server
The following code must be added to the nginx configuration file for the virtual host. It specifies that requests to /index.php should be handled by serving the file /home/username/public_html/wp-index-panomity.php and that Nginx should attempt to serve this file from the cache if it exists. If the file does not exist, Nginx will try to serve other index files in the order specified.

# Serve index.php from the cache

location /index.php {

alias /home/username/public_html/wp-index-panomity.php;

# Set the index files to try

index wp-index-panomity.php index.php index.html index.htm;

# Try the requested file or directory, then the cache
try_files $uri $uri/ /wp-index-panomity.php?$args;
}

Detailed explanation line by line of what we do here:

# Serve index.php from the cache
location /index.php {

This line defines a location block for requests to the index.php file in the root directory. Requests that match this location block are handled by the policies within that block.

alias /home/username/public_html/wp-index-panomity.php;

This line specifies an alias directive that tells Nginx to serve the file at the specified path when a request is made to /index.php. The file to be delivered is located at /home/username/public_html/wp-index-panomity.php.

# Set the index files to try
index wp-index-panomity.php index.php index.html index.htm;

This line specifies the list of files that Nginx should attempt to use as an index file if no specific file is requested. The files are tried in the order specified, and the first one that is present is used. In this case, Nginx will try to serve wp-index-panomity.php, followed by index.php, index.html and index.htm.

# Try the requested file or directory, then the cache
try_files $uri $uri/ /wp-index-panomity.php?$args;

This line specifies the try_files directive, which instructs Nginx to try to serve the requested file or directory directly, and if that fails, to serve the file specified by the /wp-index-panomity.php?$args-URI. The $uri and $uri/ variables represent the requested URI and the requested URI with a trailing slash, respectively. The $args variable contains all query string parameters passed in the request.

Lena and Jana are fictional AI presenters. The illustrations are AI-generated.