Articles of plugin wp supercache

Pages Become “Archive” Instead of Using Page Template

Update: After further inspection it appears that the pages that were effected are being created as “Archive” pages, but there is no archive.php file so they are using index.php. Why would my pages become archive pages when they have custom page-{slug} templates, and how do I fix this? (Earlier. . .) My theme was installed […]

Cron and WP Super Cache in Preload Mode

I disabled WordPress Cron and configured a real Cron (Linux Cron) to hit wp-cron.php every 8 hours, but I’m not sure how it affects the behavior of WP Super Cache in Preload Mode. As far as I know, WP Super Cache processes 100 posts, takes a break of 10 seconds, processes another 100 posts, takes […]

WP REST API and Access-Control-Allow-Origin

In one of my project I use a WordPress REST Api. When I was enabled cache by WP Super Cache plugin I have an error now: XMLHttpRequest cannot load Origin is not allowed by Access-Control-Allow-Origin. How can I fix it?

Update Custom post field by Ajax on cached site

My site cached by “wp-supper cache” plugin and “” So my php function to count post views working incorrectly. I try to use ajax for it but I’m noob with JS code so I can not know where is wrong. In functions.php I create a simple function: add_action(‘template_redirect’, ‘ajax_activation’); function ajax_activation(){ //optional wp_enqueue_script( ‘ajax_script’, get_template_directory_uri() […]

How reload wordpress page without Cache?

I am facing problem from wp cache. I have an contact listing page. When user delete on of his contact from the listed contacts then on the page it show that the record has been deleted and even record also disappear from the page but when the user again come to that page or refresh […]

Disable WordPress cache programmatically on a request

How do I turn off the WP Super Cache & W3 Total Cache functionality programmatically? For instance, I neither want to make it use the cache on some requests nor cache the output of the request, do they support that using filters? I couldn’t find anything useful in their documentation.

WP Super Cache – max-age

Reading the plugin FAQ: After you have enabled the plugin, look for the file “wp-content/cache/.htaccess”. If it’s not there you must create it. It should read: # BEGIN supercache <IfModule mod_mime.c> <FilesMatch “\.html\.gz$”> ForceType text/html FileETag None </FilesMatch> AddEncoding gzip .gz AddType text/html .gz </IfModule> <IfModule mod_deflate.c> SetEnvIfNoCase Request_URI \.gz$ no-gzip </IfModule> <IfModule mod_headers.c> […]

Wp Super Cache stops the update of a Post Meta

For a custom ‘Most popular posts’ widget, I created a function that creates/updates a post meta to save the number of posts views and I included this function in the single.php template. It works just fine till I installed WP Super Cache, the number of views stay unchanged. How can I use this function with […]

Install and activate plugins across 200 wordpress installations via SSH

I have an ubuntu server where I have roughly 200 wordpress websites running. I noticed the server is at it’s limits (mysql/cpu) and almost non of my websites have WP Super Cache installed. Logging into 200 websites and installing WP Super Cache manually would take forever. Is there a way I can install and activate […]

How can I revert to showing cached pages when no database connection is available?

I don’t know much about how super cache works, but I see that at the very least, I can find most of the pages of my site in the wp-content/cache/supercache folder. Now, if WordPress cannot connect to the database due to the MySQL server being down (as is the case right now), should it be […]