Quantcast
Channel: WordPress.org Forums » [W3 Total Cache] Support
Viewing all 19292 articles
Browse latest View live

Slow queries

$
0
0

Replies: 0

Hi,

Query monitor gives me constantly some erros about W3TC:

Slow queries: W3TC\DbCache_WpdbNew->default_query
Duplicate Queries: W3TC\DbCache_WpdbNew->default_query

What can I do for fixing this? Admin panel works slightly slow and this might to do something with it.

Second thing: I’m using WPML on multisite. W3TC suggests that I should upgrade to pro version. I tried to find the very good reasons to do this, but I found no good information why updating would make my site faster. How is the update related to WPML? What are my benefits.


master-preview.php could not be created, runned chmod 777 already

$
0
0

Replies: 0

Hi there,

I am just starting to install this plugin and I can’t get passed this error when trying to turn on preview:

wp-content/w3tc-config/master-preview.php could not be created, please run following command:
chmod 777 /wp-content/w3tc-config/master-preview.php

So far I have the file advanced-cache.php populated with the code the plugin said to include. The file permissions are 0644 owned by www-data

The wp-content/cache folder is owned by www-data and has 2775 permissions
Files inside are 0644 permission.

The wp-content/w3tc-config is owned by www-data and has 2775 permissions. (I also tested with 777 permissions and it did not work)

I created a file wp-content/w3tc-config/master-preview.php which is empty. It is owned by www-data and has 0644 permission. (I also tested with 777 permissions and it did not work)

Note: I haven’t allowed the execution of the .htaccess file yet in apache config. I see that this plugin already put a lot of code in it. When i do allow .htaccess to be used, any page i go to i get an Internal Server Error. So it breaks my site.

I am testing one thing at a time, so is there are way you could just tell me what code I need to put in to master-preview.php? Or help me create that file somehow.

Thanks!

Any plans to work with divi?

$
0
0

Replies: 0

Hello folks, total cache is my fav plugin and divi is pretty popular, anyway to worl with the divi builder with the plugin active? i saw a old post like a year ago here on the forum talking about this but cant find solution.
Thanks a lot.

Your advice about cache methode

$
0
0

Replies: 3

Hello,

I woudl like to have some advice from you about the cache method for my website hosted in cloudhost.

– Page cache —> Memcached
– Opcode cache: enable
– Databass —> Memcached
– Object cache —> Redis
– Reverse proxy —> enable with Vanish seveur : 127.0.0.1

I use also CloudFlare for the Proversion.

Thanks before for your reply.
Justin.

Preload cache settings and best values for my needs?

$
0
0

Replies: 0

Hello guys!
Thank you for the great plugin!

I have recently 99% finished my new e-commerce grocery site.

It runs on a VPS with 4 cores and 8gb ram, full SSD, and a free Cloudflare plan.

The site currently has 2700 products but will have 8000-9000.

The site currently has 445 product categories.

I have made a plugin that import and update products and their data (price, name, discounts, puts them in specific categories, etc, etc) from my warehouse program to woocommerce. The imports will be 2 times a day – 1 in the morning and one in 16:00 afternoon.

The traffic from my old website (with another domain), which will be redirected to the new domain, is around 210000 unique visits per month and has a pick from 18:00 to 21:00, from Monday to Friday and has considerably lower traffic during the weekend. Has a 7 minutes average time on site.

Before I put it on the VPS I was testing it on shared hosting and the import (which is 2 min for 2700 products, so let’s say it will be 10 minutes for 8000 products) was fine but when I enable preload with a little more moderate values the CPU usage was at 99%.

I haven’t tested yet the import with preload, or preload at all on the VPS. But my needs are to preload the cache automatically after each import, ideally EVERY SINGLE product and category, in like 5-10 minutes.

What would you advise me to do? Any good starting settings? Should I use it at all?

  • This topic was modified 1 hour, 11 minutes ago by snipsnip.

Contact form 7 stops working while using W3TC

$
0
0

Replies: 5

If you fill up the form, it keeps loading, this is happening after installing the W3tc plugin.

How can you hello with this. I have googled a lot and this is a common problem a lot of users are facing.

mod_deflate not working

$
0
0

Replies: 6

When I disable W3TC gzip works but when I enable it, it works until I don’t load the website without login (lets say in incognito)

I am testing it here: https://base64.guru/tools/gzip-test

Server Modules & Resources:
Plugin Version: 0.13.3
PHP Version: 7.4.5;
Web Server: Apache
FTP functions: Installed (required for Self-hosted (FTP) CDN support)
Multibyte String support: Installed (required for Rackspace Cloud Files support)
cURL extension: Installed (required for Amazon S3, Amazon CloudFront, Rackspace CloudFiles support)
zlib extension: Installed (required for gzip compression support)
brotli extension: Not installed (required for brotli compression support)
Opcode cache: PHP6
Memcached extension: Not installed
Memcache extension: Not installed
Redis extension: Not installed
HTML Tidy extension: Not installed (required for HTML Tidy minifier support)
Mime type detection: Installed (Fileinfo) (required for CDN support)
Hash function: Installed (hash) (required for NetDNA / MaxCDN CDN purge support)
Open basedir: Off
zlib output compression: Off
set_time_limit: Available
SSH2 extension: Not installed (required for Self-hosted (FTP) CDN SFTP support)
mod_deflate: Not detected (required for disk enhanced Page Cache and Browser Cache)
mod_env: Not detected (required for disk enhanced Page Cache and Browser Cache)
mod_expires: Not detected (required for disk enhanced Page Cache and Browser Cache)
mod_filter: Not detected (required for disk enhanced Page Cache and Browser Cache)
mod_ext_filter: Not detected (required for disk enhanced Page Cache and Browser Cache)
mod_headers: Not detected (required for disk enhanced Page Cache and Browser Cache)
mod_mime: Not detected (required for disk enhanced Page Cache and Browser Cache)
mod_rewrite: Not detected (required for disk enhanced Page Cache and Browser Cache)
mod_setenvif: Not detected (required for disk enhanced Page Cache and Browser Cache)
WP_CACHE define: Defined (true)
URL rewrite: Enabled
Network mode: No

Minify + gZip = error on first load only (race situation?)

$
0
0

Replies: 0

I am running latest versions of everything on nginx/mariaDB/ubuntu_20.04.

I have noticed an issue when I try to use CSS/JS minify and enable gZip compression of CSS/JS.

Steps to re-produce…

  1. Save & Purge W3 Cache settings
  2. Update the media query string
  3. Clear the minify cache
  4. Clear the page cache
  5. Restart nginx
  6. Clear the browser cache
  7. Refresh the page in the browser

All CSS and JS files will return a “ERR_CONTENT_DECODING_FAILED” error. If you reload the page, everything will be perfect.

If you navigate to another page which needs some different CSS/JS then this will also fail if it is the first time that CSS/JS has been called.

I wonder in this is some sort of “race situation”, perhaps with W3TC trying to serve a minify/abc123.css_gzip file before it has been created?

This problem is made much worse if you use a CDN because this first-time issue is the one that gets cached on the CDN, so if you are using a CDN then every page will fail, even when reloaded because the faulty version has been cached.

  • I have tried using “combine only” and this makes no difference – same problem.
  • If I turn off compression then everything works OK, so there is no particular issue with minifying my theme’s CSS/JS
  • If I turn off minify and just leave compression then everything also works OK. So there is no issue with gZip compression.
  • I have tried modifying my core /etc/nginx/nginx.conf so that gZip is not enabled by default. Therefore all gZip declarations are being created by W3TC in the /var/www/worpress/nginx.conf
  • I am pretty sure I saw a similar problem on an apache based installation I was also working on, but that project got dropped

CORS not working, fonts not loading

$
0
0

Replies: 0

I am trying to self-host CDN but CORS is not working for some reason due to which fonts are missing. I tried to add following under rejected files but fonts are still being called from CDN

{wp_content_dir}/*.woff
{wp_content_dir}/*.woff2
{wp_content_dir}/*.ttf
{plugins_dir}/*.woff
{plugins_dir}/*.woff2
{plugins_dir}/*.ttf

Server Info Not Displaying Properly

$
0
0

Replies: 1

Server information such as $_SERVER[‘HTTP_REFERER’] and $_SERVER[‘HTTP_HOST’] are not displaying proper information when the W3 Total Cache plugin is enabled. I tried disabling various features of the plugin, but it didn’t help. Only when the plugin is completely disabled, does PHP display proper server info.

AH01071 Php Warning

$
0
0

Replies: 1

We are frequently getting this warning in our logs, is there any way to stop it?

[Mon May 04 11:05:01.801581 2020] [proxy_fcgi:error] [pid 32052:tid 140585453156096] [client 35.189.235.119:55322] AH01071: Got error ‘PHP message: PHP Warning: preg_match(): Compilation failed: quantifier does not follow a repeatable item at offset 0 in /var/www/vhosts/SITE/httpdocs/wp-content/plugins/w3-total-cache/PgCache_ContentGrabber.php on line 946

How can this be resolved??

Cannot set cookie when page cache was enabled.

$
0
0

Replies: 5

I created this simple plugin to make sure that cookie can be set but when page cache was enabled, it is not working.

<?php
/**
 * Plugin Name: Test cookie with W3TC
 * Plugin URI:
 * Description:
 * Version:
 * Author: Vee W
 * Author URI: 
 * License: MIT
 * License URI: http://opensource.org/licenses/MIT
 * Text Domain: test-cookie-w3tc
 * Domain Path: /languages/
 * 
 * @package test-cookie-w3tc
 */

add_action('init', 'testcookiew3tc');

function testcookiew3tc()
{
    setcookie('testcookiew3tc', date('Y-m-d H:i:s'), 0, COOKIEPATH, COOKIE_DOMAIN);
}

The W3TC plugin settings is all default with page cache enabled.

  • This topic was modified 18 hours, 2 minutes ago by vee.

stop cache from sitemap

$
0
0

Replies: 11

Hello team,

I want to stop to caching my sitemap page.
Can you help me please to do this correct.

The RankMath support tell me to add these code.

/(.*)sitemap(.*).xml
/(.*)sitemap.xsl

Help me please for better results.
Thank you !!!

Preloader Working?

$
0
0

Replies: 1

The issue is that while the page is loading, the logo within the header would ‘jump’ from one position of the screen and then load to its place once the page has completed loading. Thinking that I needed to modify the Preloader settings (and I did), I still don’t see any difference in the way the page is loading. However, once the pages are cached, you don’t see the jumping logo. The idea is to STOP the logo in the header from jumping.

I cannot post the URL publicly but would be glad to post it in a private response.

How to disable CDN integration with W3TC on WordPress

$
0
0

Replies: 1

I’m troubleshooting to problems in WordPress, and I would like to know if the CDN integration with W3TC is the problem, but I can’t find an option in the plugin to disable the CDN.

How to disable CDN integration on W3TC?


Conflict Divi theme and its builder

$
0
0

Replies: 1

Hi W3TC team,

As many users, i got trouble with Divi and its builder. Could you help me out?

If i summarize, what i’ve read here:
https://wordpress.org/support/topic/w3-conflicts-with-divi-theme-builder/page/2/
https://wordpress.org/support/topic/conflict-divi-theme/
https://wordpress.org/support/topic/w3-total-cache-seemingly-incompatible-with-divi-builder/

In terms of solution, i can try:
1) General Settings page –> Minify mode –> Manual
2) Minify page –> JS –> JS file management: –> Divi
3) CSS –> CSS file management: –> Divi
4)Performance> User Experience and then disable Process HTML Image Tags and leave Process Background Images active, the loader still works.

As recommended by Marko Vasiljevic (@vmarko), i tried also to deactivate the minify. At least for logged user.

I tried but still not working, therefore, shall share:
– this wp-content/w3tc-config/master.php
– or https://www.w3-edge.com/contact/ and provide us with the files located in wp-content/cache/log ?

Please let me know and i will do. And i’ll share here the answer for others Divi users not helped by Divi 😉

Thanks!

Plugin Not Available

$
0
0

Replies: 0

Hello Guys,
I need help with the installation of some plugin especially with the W3 Total Cache
Some times after developing the whole website when I try to install the plugin it shows plugin not available with a “?” Question mark sign. When we hover on it “The plugin is not allowed in our system due to performance security and compatibility concerns. Please contact support with any question”. This message shows up
Please help me out if you know how to get rid of this.

Thank You
JazakAllah khair.

  • This topic was modified 15 hours, 33 minutes ago by syednajam.

Fail when trying to create distribution with CloudFront

$
0
0

Replies: 0

I purchased pro today and started setting up CDN with this plugin for CloudFront. I’m looking forward to getting some help on this please.

After inputting the key id and key of my aws user then clicking the “Create Distribution” button it says fail.

Have tried with a user which has cloudfront and s3 full access as well as have tried one with full admin access. I’ve tried removing the keys and creating new ones – none of these work.

I can access the account successfully with the aws cli with the creds I’m using in the key id and access key form fields when trying to create a distribution.

There is no error in the PHP logs for some reason however, I was able to retrieve an error message from the POST request the plugin makes in attempt to create the distribution.

the request that’s made is:

POST /wp-admin/admin.php?page=w3tc_dashboard
w3tc_cdn_create_container: 1
_wpnonce: 28b3ed3c2e
engine: cf2
config[key]: <redacted>
config[secret]: <redacted>

Here’s the error it’s showing:

500 Internal Server Error


Fatal error: Uncaught Error: Argument 1 passed to Aws\Common\Client\AbstractClient::__construct() must be an instance of Aws\Common\Credentials\CredentialsInterface, array given, called in wp-content/plugins/w3-total-cache/CdnEngine_Mirror_CloudFront.php on line 39
in wp-content/plugins/amazon-web-services/vendor/aws/Aws/Common/Client/AbstractClient.php on line 73

Call stack:

Aws\C\C\AbstractClient::__construct()
wp-content/plugins/w3-total-cache/CdnEngine_Mirror_CloudFront.php:39
W3TC\CdnEngine_Mirror_CloudFront::_init()
wp-content/plugins/w3-total-cache/CdnEngine_Mirror_CloudFront.php:199
W3TC\CdnEngine_Mirror_CloudFront::create_container()
wp-content/plugins/w3-total-cache/Cdn_AdminActions.php:475
W3TC\Cdn_AdminActions::w3tc_cdn_create_container()
wp-content/plugins/w3-total-cache/Root_AdminActions.php:25
W3TC\Root_AdminActions::execute()
wp-content/plugins/w3-total-cache/Generic_Plugin_Admin.php:162
W3TC\Generic_Plugin_Admin::load()
wp-includes/class-wp-hook.php:287
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:311
WP_Hook::do_action()
wp-includes/plugin.php:478
do_action()
wp-admin/admin.php:232
  • This topic was modified 10 hours, 58 minutes ago by tylerlindell.

too much cache files?

$
0
0

Replies: 0

Hello.
I use the preload feature and my sitemap file consists of about 200 URLs.
But, when the preload is done I see about 400 cache files created in cache folder.
It seems like 2 files are created for every page.
Is it normal? I use the basic cache method.
I found out that it happens when GZIP compression in the Browser cache tab is enabled.

  • This topic was modified 10 hours, 37 minutes ago by fkoomek.
  • This topic was modified 10 hours, 18 minutes ago by fkoomek.
  • This topic was modified 10 hours, 17 minutes ago by fkoomek.

W3TC remove htaccess file in CDN

$
0
0

Replies: 0

Everytime I save settings in W3TC it removes original “.htaccess” file in my self-hosted CDN, and create a new “htaccess” file (without DOT) which only curtains W3TC codes and no other codes or anything from the actual file.

Viewing all 19292 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>