+4981217607887 hallo@panomity.de

Panomity WP Cache

Panomity WP Cache is a simple full page cache for a WordPress homepage and is distributed under the open source license GPL v3.

LEARN MORE!

Sustainable Cloud Hosting

Start reducing your CO2 footprint today!

Save CO2 thanks to Panomity WP Cache

Panomity WP CacheOur full page cache Panomity WP Cache as well as the extended version Panomity WP Turbo help to reduce CO2 emissions by reducing server load and thus energy consumption.

Our cache stores a version of your homepage and delivers it directly to the user without the server having to generate a new version each time. This contributes to fewer requests being made to the server, which in turn reduces energy consumption. When fewer requests are made to the server, fewer resources (such as CPU, memory) must be used to deliver the home page.

So if a large proportion of users access your website via the homepage, this will result in a significant reduction in energy consumption and therefore a reduction in CO2 emissions associated with energy production.

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.

WordPress database error: [Table 'pamide_wp1.wp_wpl_cookie_scan_cookies' doesn't exist]
SELECT COUNT(id_wpl_cookie_scan_cookies) AS ttnum FROM wp_wpl_cookie_scan_cookies

WordPress database error: [Table 'pamide_wp1.wp_wpl_cookie_scan_cookies' doesn't exist]
SELECT * FROM wp_wpl_cookie_scan_cookies INNER JOIN wp_gdpr_cookie_scan_categories ON wp_wpl_cookie_scan_cookies.category_id = wp_gdpr_cookie_scan_categories.id_gdpr_cookie_category ORDER BY id_wpl_cookie_scan_cookies ASC LIMIT 0,100