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

CSS minify removes mandatory spaces in calc()

$
0
0

Replies: 0

Using version 0.9.7.2, CSS minification removes mandatory spaces in calc() expressions. For example, margin: 0 calc(10% + 60px) is turned into margin:0 calc(10%+60px). This causes the value to be ignored in at least Chrome.

The error does not occur when CSS minification is “Combine only”.


Better way to list custom files?

$
0
0

Replies: 0

The CDN Cloudfront Origin Push option for W3TC is replacing all references to files that aren’t mentioned in the default settings. This is causing 403 errors since not all files are being uploaded to the Cloudfront/S3.

I have compiled a list of all the files that are being replaced by CDN links and have added it to the Custom Files list.

However, I am not sure this is the best way to mention these files. (Especially if they are generated by plugins and theme builders we don;t exactly control)

Is there a different method I should be listing this to cover more ground?

My Custom File list looks like this

favicon.ico
{wp_content_dir}/gallery/*
{wp_content_dir}/uploads/avatars/*
{plugins_dir}/wordpress-seo/css/xml-sitemap.xsl
{plugins_dir}/wp-minify/min*
{plugins_dir}/*.js
{plugins_dir}/*.css
{plugins_dir}/*.gif
{plugins_dir}/*.jpg
{plugins_dir}/*.png
{plugins_dir}/*.ttf
{plugins_dir}/*.otf
{plugins_dir}/*.woff
{plugins_dir}/*.woff2
{plugins_dir}/*.less
*.icon
{wp_content_dir}/themes/bb-theme/css/*.css
{wp_content_dir}/themes/bb-theme/js/*.js
{wp_content_dir}/uploads/bb-plugin/cache/*.css
{wp_content_dir}/uploads/bb-plugin/cache/*.js
{wp_content_dir}/uploads/bb-plugin/icons/ultimate-icons/*.css
{wp_content_dir}/uploads/bb-theme/*.css
{wp_content_dir}/uploads/bb-plugin/icons/ultimate-icons/fonts/*.woff
{wp_content_dir}/uploads/bb-plugin/icons/ultimate-icons/fonts/*.ttf
{wp_content_dir}/plugins/woocommerce/assets/images/icons/*.svg

No more navigation as admin user

$
0
0

Replies: 4

Hey tehre,

is it possible that the plugin destroys the navigation of the site, when you are loged in as an admin user?

Just from one moment to the other there is no navigation of the site and there is some kind of “strnge navigation on the bottom of the page just under the footer

Never minify the following CSS & JS files Not working

blur images on my website

$
0
0

Replies: 3

I’m using w3total cache for leverage cache browsing. And now the images on my website on opening the page, gets blur at first and then revive the original state and few images just dont load on desktop screen and remain blur only.
Please inquire and let me know what to do?

Page cache displaying old broken copy of front page

$
0
0

Replies: 0

I have a website that (suddenly) no matter what I do, as soon as I turn on page cache, it displays an old, broken copy of the front page. It does this even with W3TC disabled. The only way to ‘fix’ it, is to enable W3TC and disable page cache. I was using memcached, but even tried using opcode caching with APC. As soon as page cache is enabled with either, an old, broken copy of the front page is displayed.

This problem sprung up yesterday when I was editing the front page of the site. The page is only broken for guests. However, I assume that is because it’s not cached for logged in users.

Running the latest version of W3TC and WP 5.0.3.

W3TC Page Cache Issue

$
0
0

Replies: 0

We are experiencing a recent issue as of 2 days ago where new code is being added to .HTACCESS that is forcing an enhanced disk cache for our W3TC plugin every time the Page cache is enabled. The main thing that makes this weird is that we use Memcached and even when it shows that properly as the setting in the WP backend it still uses the enhanced disk cache (which never gets cleared properly and now has old pages) for actual operations. We also see this in the debug output on our main page for a client (aka enhanced disk cache is selected and show as the page cache in effect). The thing that makes this quite odd is I looked back in Full Backups (BackupBuddy) from last week and the .htaccess did not show this. We suspect that SmartPixel might have somehow messed up our cache seeings (evil plugin – hate it) so right now all we can do is disable the page cache and then all the other caches work just fine. FYI, even when switching the cache off and back on with memcached selected it still ACTUALLY is using the enhanced disk cache and showing the old pages that live in there. Here is what we see in .htaccess. Is anyone else seeing this? https://cl.ly/9516df35f748

Inline small CSS and JavaScript

$
0
0

Replies: 2

Good day,
in W3 Total Cache there are no functions:
Inline small CSS (inline_css) and Inline small JavaScript (inline_javascript)?


The plugin sometimes sends a binary blob or a cache object file

$
0
0

Replies: 0

Sometimes when I load the website, this plugin starts sending a binary file which I think is a cache object file. This seems to be an intermittent problem and I am not able to reproduce it. It just happens sometimes.

Here is what is displayed in the Chrome
https://prnt.sc/ml0vmy

On Mozilla when opening the homepage of the website, the file gets downloaded. The filename was thjLc9_o.

If I purge all the cache, everything starts working fine again.

Admins aren’t allowed to purge the cache

$
0
0

Replies: 0

Hello,
we’ve got a multisite installation, where some user have admin rights (not superadmin). They are not longer able to purge the cache, they are getting the error:

“Sorry, you are not allowed to access this page”

For me, as Superadmin, it’s still working, but is there a way to allow it again for “normal” admins, that have not access to the network options in general?

Thanks a lot 🙂

BUG: Browser cache for SVG Images Don’t Work

$
0
0

Replies: 1

Hi,

I found a W3TC bug related to its nginx configuration in the past: https://wordpress.org/support/topic/bug-diskenhanced/

Now I found another one which is related to nginx configuration. It is similar to the previous bug.

The issue is that, browser cache for SVG images don’t work:

  1. I disabled browser cache for HTML & XML pages in the W3TC settings. And its configuration like that,
     location ~ \.(html|htm|rtf|rtx|svg|txt|xsd|xsl|xml)$ {
        etag off;
        if_modified_since exact;
        add_header X-Powered-By "W3 Total Cache/0.9.7.2";
    }

    This configuration contains SVG rule as you can see.

  2. And I enabled browser cache for images in the W3TC settings. its configuration:
    location ~ \.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|webp|json|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|webm|mpp|otf|_otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|svg;|svgz|swf|tar|tif|tiff|ttf|ttc|_ttf|wav|wma|wri|woff|woff2|xla|xls|xlsx|xlt|xlw|zip)$ {
        expires 31536000s;
        etag on;
        if_modified_since exact;
        add_header Pragma "public";
        add_header Cache-Control "public";
        add_header X-Powered-By "W3 Total Cache/0.9.7.2";
    }

    Above configuration contains SVG rule too. Nginx accept the first rule only (html & xml) in this situation. The second rule is ignored by nginx. So browser cache is not working at all for SVG.

    I think you should investigate all of your nginx rules immediately and fix it, please.

    Because these bugs may cause security problems and speed issues.

    Thank you!

  • This topic was modified 1 hour, 27 minutes ago by kocakserdar7.

Unable to purge page cache on PHP APC/APCu

$
0
0

Replies: 0

System: LAMP.
Tried to purge all cache, purge specific page, empty cache (on General settings) etc. many times.
Admin page was display correctly (no cache for logined users enabled).
Disable Page cache and update was displayed on browser correctly. Re-enable it than page went back to old version.
Have to removed specific page from page cache on server to fix. Switch to Disk method could do the same?

  • This topic was modified 4 hours, 16 minutes ago by duytruong. Reason: spelling

Upgrade

$
0
0

Replies: 0

Would like to upgrade to premium version but for some reason cannot get paypal check to work in your modal window. Is there an alternative way to pay through PayPal?

Webp and CDN support

$
0
0

Replies: 0

I am wondering how I can get W3 Total Cache to automatically submit webp images to my CDN. I have already successfully set up a connection to my S3 bucket.

It seems like the plugin is just not set up to look for that file extension when checking the media gallery for new images to host.

I realize I can manually submit a request to host custom files, however I was hoping for an automated solution.

Remove type=”text/javascript”

$
0
0

Replies: 0

I added code to the functions.php file:

add_filter('script_loader_tag', 'js_atr', 10, 2);
function js_atr($tag, $handle) {
return str_replace(array('type="text/javascript"', "type='text/javascript'"), '', $tag);
}

After that, all “type=”text/javascript”” are disappeared, except those that add a plugin.
It looks like this:
<script src=’https://code.jquery.com/jquery-3.3.1.min.js’></script>
<script type=”text/javascript” src=”https://mydomain/files/cache/minify/65f03.js”></script>


CDN (Mutualized Web ovh) + de W3 Total Cache

$
0
0

Replies: 0

Hello,

1. I’m setting up a CDN on my WordPress site. The CDN is active on my OVH interface since few days, however, when I test my site on GRmetrix the loading time of images is still slow.

2. On their OVH page, talk about W3 Total Cache. What options must be enabled for the CDN to work? (https://docs.ovh.com/fr/fr/web/hosting/accelerer-mon-web-site-using-the-cdn/33)

3. On W3 Total Cache > CDN, which CNAME of OVH I can use ?

autoconfig.mmomedical.fr. > mailconfig.ovh.net.

autodiscover.mmomedical.fr. > mailconfig.ovh.net.

http://ftp.domain.fr. > domain.fr.

imap.domain.fr. > ssl1.ovh.net.

mail.domain.fr. > ssl1.ovh.net.

pop3.domain.fr. > ssl1.ovh.net.

smtp.domain.fr. > ssl1.ovh.net.

Many thanks

Specify a cache validator for Fonts

$
0
0

Replies: 0

Hi,

My GTMetrix report recommends ‘Specify a cache validator’. I have set it up so, however it is not working for the following files (fonts)

https://morenabeachwear.com/wp-content/themes/walker/assets/css/elegant-icons/fonts/ElegantIcons.woff
https://morenabeachwear.com/wp-content/themes/walker/assets/css/ion-icons/fonts/ionicons.ttf?v=2.0.0
https://morenabeachwear.com/wp-content/themes/walker/assets/css/linea-icons/ecommerce/fonts/linea-ecommerce-10.woff

Any suggestion on how I could solve this?
Thanks

Fatal error when trying to get on the dashboard

$
0
0

Replies: 0

hello,
i can’t access to my wordpress dashboard anymore. i receive that error message :
“Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in /home/inrac347/public_html/wp-content/plugins/w3-total-cache/Cdn_AdminNotes.php on line 2”
I can’t find a solution on the forum.

How could i resolve this problem?

Regards,
Pierre

Regular Expression on Additional Pages

$
0
0

Replies: 0

Hello,

I’m trying use Regular Expression on:
Page Cache » Purge Policy: Page Cache

But seems it is not works.

If I tried a normal url – works fine.

However, what I want is all pages on a path, so I set as:
path/.*

I tried only .* to check if works but without success too, so I’m wondering if I can use Regular Expression on Additional Pages?

thanks

  • This topic was modified 1 hour, 54 minutes ago by lungaxe.

Web Server error on restart if adding required code to nginx.conf

$
0
0

Replies: 0

Hi,

When I add the following code:

# BEGIN W3TC Page Cache core
set $w3tc_rewrite 1;
if ($request_method = POST) {
    set $w3tc_rewrite 0;
}
if ($query_string != "") {
    set $w3tc_rewrite 0;
}
if ($http_cookie ~* "(comment_author|wp\-postpass|wordpress_logged_in|wptouch_switch_toggle)") {
    set $w3tc_rewrite 0;
}
if ($http_user_agent ~* "(W3\ Total\ Cache)") {
    set $w3tc_rewrite 0;
}
set $w3tc_preview "";
if ($http_cookie ~* "(w3tc_preview)") {
    set $w3tc_preview _preview;
}
set $w3tc_enc "";
if ($http_accept_encoding ~ gzip) {
    set $w3tc_enc _gzip;
}
# END W3TC Page Cache core
# BEGIN W3TC Browser Cache
gzip on;
gzip_types text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/bmp application/java application/msword application/vnd.ms-fontobject application/x-msdownload image/x-icon image/webp application/json application/vnd.ms-access video/webm application/vnd.ms-project application/x-font-otf application/vnd.ms-opentype application/vnd.oasis.opendocument.database application/vnd.oasis.opendocument.chart application/vnd.oasis.opendocument.formula application/vnd.oasis.opendocument.graphics application/vnd.oasis.opendocument.spreadsheet application/vnd.oasis.opendocument.text audio/ogg application/pdf application/vnd.ms-powerpoint application/x-shockwave-flash image/tiff application/x-font-ttf audio/wav application/vnd.ms-write application/font-woff application/font-woff2 application/vnd.ms-excel;
location ~ \.(css|htc|less|js|js2|js3|js4)$ {
    expires 31536000s;
    etag on;
    if_modified_since exact;
    add_header Pragma "public";
    add_header Cache-Control "public";
    add_header X-Powered-By "W3 Total Cache/0.9.7.2";
    try_files $uri $uri/ $uri.html /index.php?$args;
}
location ~ \.(html|htm|rtf|rtx|svg|txt|xsd|xsl|xml)$ {
    expires 3600s;
    etag on;
    if_modified_since exact;
    add_header Pragma "public";
    add_header Cache-Control "public";
    add_header X-Powered-By "W3 Total Cache/0.9.7.2";
    try_files $uri $uri/ $uri.html /index.php?$args;
}
location ~ \.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|webp|json|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|webm|mpp|otf|_otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|_ttf|wav|wma|wri|woff|woff2|xla|xls|xlsx|xlt|xlw|zip)$ {
    expires 31536000s;
    etag on;
    if_modified_since exact;
    add_header Pragma "public";
    add_header Cache-Control "public";
    add_header X-Powered-By "W3 Total Cache/0.9.7.2";
    add_header Link "<$scheme://$host$uri>; rel=\"canonical\"";
    if ($request_uri ~ ^[^?]*\.(ttf|ttc|otf|eot|woff|woff2|font.css)(\?|$)) {
        add_header Link "<$scheme://$host$uri>; rel=\"canonical\"";
        add_header Pragma "public";
        add_header Cache-Control "public";
        add_header X-Powered-By "W3 Total Cache/0.9.7.2";
        add_header Access-Control-Allow-Origin "*";
    }
    try_files $uri $uri/ $uri.html /index.php?$args;
}
add_header Referrer-Policy "";
# END W3TC Browser Cache

to /etc/nginx/nginx.conf

The service is not restating. it gives an error for each added line.

Feb 19 01:14:21 tnmc-web1 systemd[1]: Starting A high performance web server and a reverse proxy server...
Feb 19 01:14:21 tnmc-web1 nginx[27603]: nginx: [emerg] "set" directive is not allowed here in /etc/nginx/nginx.conf:90
Feb 19 01:14:21 tnmc-web1 nginx[27603]: nginx: configuration file /etc/nginx/nginx.conf test failed

The existing file content (before adding anything) is:

user www-data;
worker_processes auto;
pid /run/nginx.pid;

events {
	worker_connections 768;
	# multi_accept on;
}

http {
	# Basic Settings
	##
	client_max_body_size 120M;
	sendfile on;
	tcp_nopush on;
	tcp_nodelay on;
	keepalive_timeout 65;
	types_hash_max_size 2048;
	# server_tokens off;

	# server_names_hash_bucket_size 64;
	# server_name_in_redirect off;

	include /etc/nginx/mime.types;
	default_type application/octet-stream;

	##
	# SSL Settings
	##

	ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
	ssl_prefer_server_ciphers on;

	##
	# Logging Settings
	##

	access_log /var/log/nginx/access.log;
	error_log /var/log/nginx/error.log;

# Enable Gzip compression
gzip          on;

# Compression level (1-9)
gzip_comp_level     7;

# Don't compress anything under 256 bytes
gzip_min_length     256;

# Compress output of these MIME-types
gzip_types
    application/atom+xml
    application/javascript
    application/json
    application/rss+xml
    application/vnd.ms-fontobject
    application/x-font-ttf
    application/x-javascript
    application/x-web-app-manifest+json
    application/xhtml+xml
    application/xml
    font/opentype
    image/svg+xml
    image/x-icon
    text/css
    text/plain
    text/javascript
    text/x-component;

# Disable gzip for bad browsers
gzip_disable  "MSIE [1-6]\.(?!.*SV1)";

	##
	# Virtual Host Configs
	##

	include /etc/nginx/conf.d/*.conf;
	include /etc/nginx/sites-enabled/*;

}
Viewing all 19297 articles
Browse latest View live


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