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

CDN URL is inserted into inline Javascript

$
0
0

Replies: 4

Hi,

I have a page running that uses the Plugin Ad-Inserter Pro. This Plugin brings some inline Javascript to tha page, having this line of Code:

name=name.replace(/[\[\]]/g,"\\$&");

If I activate the CDN option in W3TC this line is replaced with this one:

name=name.replace(http://{mycdnurl}/[\[\]]/g,"\\$&")
Where {mycdnurl} is the URL of our CDN.

This breaks the whole javascript because the syntax is no longer valid. Also this does not make any sense.

Is there a way to disable the inline replacement of the CD-URL?

Best Regards,
Oliver


.htaccess RewriteRule version control issue

$
0
0

Replies: 5

I just started evaluating w3tc and came across and issue with keeping .htaccess in version control on my local dev machine.

On my local machine (WP 4.9.6, win10 pro, apache 2.4, site config’d as a VHost), w3tc adds the following to .htaccess:

    RewriteCond "%{DOCUMENT_ROOT}%C:/full/windows/path/to/site/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}" -f
    RewriteRule .* "C:/full/windows/path/to/site/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}" [L]

whereas, on the server of the I’m testing it on (WP 4.9.6, centOS, apache 2.4), I get:


    RewriteCond "%{DOCUMENT_ROOT}/wp-content/cache/page_enhanced/ ... -f
    RewriteRule .* "/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}" [L]

How can I get the install on my local machine to not include the full windows path to the site in the Rewrite{Cond,Rule}? I ask because this difference means that I can’t keep the .htaccess in version control.

w3 Total Cache – no minification happening

$
0
0

Replies: 2

hi there!

I have spent two days on this but not able to figure this out. I have gone through many tutorials and guides but nowhere can I find a fix for this. I am working with the latest 0.9.7.

I have enabled css/js minification (default types) with auto settings. But the files in the frontend are just not getting minified. They do combine to some extent but nothing in minified!

I have checked permissions, checked various settings, cleared caches, deleted cache folders etc. but nothing seems to help.

Please help!

Thanks very much!

  • This topic was modified 5 days, 6 hours ago by kujain.

How to change minified css file name?

$
0
0

Replies: 1

Does anybody know how to generate a new file name for the combined css files?
My problem is that users which doesnt clear their browser cache will see the old css
styled page.

Also after purging all caches the file name is still the same.

Thanks for your help…
Lukas

Settings not working

$
0
0

Replies: 4

Hello,

I’m trying to use this plugin on one of my sites and for some reason none of the settings are working. I have enabled it and am using the same settings as my other websites which all sit on the same hosting environment which is why it’s odd this one isn’t working.

I have tried uninstalling and installing again but this hasn’t helped. I also tried activating the debug mode so I could see if there were any errors but nothing. It’s as if everything I try isn’t having an effect.

When running the compatibility test, the mod_ modules are coming back as not detected but this is also the same for my other sites I have, which are using W3 total cache successfully so I’m not taking much notice of these.

Does anyone know what might be causing this? I’ve tried everything including changing themes and deactivating plugins and nothing I do works.

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)

Failed to purge: CloudFlare cache: Cloudflare does not support deprecated TLS ve

$
0
0

Replies: 2

From several weeks it’s impossible to flush Cloudflare cache from the plugin.

This is the error message:

Failed to purge: CloudFlare cache: Cloudflare does not support deprecated TLS versions for security reasons

Error: cannot use output buffering…

$
0
0

Replies: 1

I’m noticing that when I save a page in the backend or even when I access it to edit it, I get the following error: Fatal error: unknown: can not use output buffering in output buffering display handlers in unknown on line 0. I think that’s what the minify setting is for . When I clean the cache I finally edit the page. Are you aware of this error? Use wp 4.9 and jupiter theme 6

Don’t cache pages for following user roles not working

$
0
0

Replies: 0

Hello!

First of all, great plugin!

I want to catch pages for logged-in users, I’ve created an API to dynamically load user content, and I have disabled caching for some user pages.

It works great, however, I want to disable caching for Admin, Author, etc. Basically, cause it shows the admin bar.

I select the roles I don’t want to cache pages for in “Don’t cache pages for following user roles” and I deselect “Don’t cache pages for logged in users”. However, I still get cached pages as admin and also those pages are served to regular users.

Any thoughts?

Regards
Dídac


Migrating from staging subdomain to production

$
0
0

Replies: 5

How do I migrate a website using w3 Total Cache from a subdomain newsite.mydomain.com to mydomain.com?

We developed a new website at staging sudomain and need to move it to the main domain to completely replace what is there.

CDN warning message

$
0
0

Replies: 0

For the CDN setup on W3 Cache, I believe it needs some corrections done to it’s warning message:

“A configuration issue prevents CDN from working: The “Authorization key” field(s) cannot be empty.You need to select / create a pull zone. Specify it here.”

I’m using StackPath and therefore use the CDN feature with that field empty. Suggest providing an option to ignore/discard that warning message if using other CDNs?

W3TC_PRO_DEV_MODE not working

$
0
0

Replies: 1

We have several instances of a client’s site we use for development and staging purposes.

We purchased and enabled the Pro version on our staging site. We are attempting to activate Pro on our dev sites and when we enter the license key it says it’s currently in use and directs us to add this line to wp-config:

define(‘W3TC_PRO_DEV_MODE’, true);

but that is not working – Pro features remain unavailable. Are we doing it wrong?

Here’s the page where this feature is happily trumpeted:
https://www.w3-edge.com/solutions/w3-total-cache-pro/
(just find on “W3TC_PRO_DEV_MODE”)

Several emails to the developer have gone unreplied to. Is there any way to get “pro support” since we’ve paid for pro?

Any official support for Pro version of this plugin?

$
0
0

Replies: 1

For those of us who purchased the Pro version, is there a way to get actual support other than pay $250 per incident?

Multiple support requests through the website form – which sends out an autoresponse – don’t seem to get any human response.
https://www.w3-edge.com/contact/

Maybe they only pay attention if you pay them even MORE money…?

Nginx Browser rewrite rules cause 404 errors in static files

$
0
0

Replies: 3

Again, thanks for this great plugin!

The browser cache rules cause 404 errors in static files when using alias.

So, part of my config in /sites-available/ would be.

location /masters1/ {
			add_header Content-Disposition "attachment";
			alias /masters1/;
}

And these rewrite rules cause my server to throw 404 errors when I search for those files (www.example.com/masters1/myfile)

location ~ \.(css|htc|less|js|js2|js3|js4)$ {
    expires 31536000s;
    etag on;
    if_modified_since exact;
    add_header Pragma "public";
    add_header Cache-Control "max-age=31536000, public";
    add_header X-Powered-By "W3 Total Cache/0.9.7";
    try_files $uri $uri/ $uri.html /index.php?$args;
}
location ~ \.(html|htm|rtf|rtx|svg|txt|xsd|xsl|xml)$ {
    expires 0s;
    etag off;
    if_modified_since exact;
    add_header Pragma "public";
    add_header Cache-Control "max-age=0, public";
    add_header X-Powered-By "W3 Total Cache/0.9.7";
    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|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 "max-age=31536000, public";
    add_header X-Powered-By "W3 Total Cache/0.9.7";
    try_files $uri $uri/ $uri.html /index.php?$args;
}
location ~ \.(bmp|class|doc|docx|eot|exe|ico|webp|json|mdb|mpp|otf|_otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|pot|pps|ppt|pptx|svg|svgz|swf|tif|tiff|ttf|ttc|_ttf|wav|wri|woff|woff2|xla|xls|xlsx|xlt|xlw)$ {
    etag off;
    if_modified_since off;
    try_files $uri $uri/ $uri.html /index.php?$args;
}

Obviously, if I remove the file extensions that I use in my alias then it works, but I use both audio and image files and I want to get the browser cache for images.

Any ideas on how can I make this work?

Regards

Probleam with wp-admin

$
0
0

Replies: 4

Hi,
I have a problems when add article or edit it, the articles page give me an old version, I purge cache and no changed appear.
After adding article I can not find it in All article page

call my custom function after clear all cache

$
0
0

Replies: 0

I need to call my custom function after clear all cache. “w3tc_flush_all” hook to trigger my custom function before clear the cache. I need after cache cleared the cache. Please let me know any hooks available?


Removing the footer comment

$
0
0

Replies: 0

I have tried my best possible and every code I could find online about how to remove the footer comment ‘Optimization WordPress Plugins & Solutions by W3 EDGE’. Don’t get me wrong, I love W3 Cache very much… But I find that footer link very very frustrating. How do I get this out?

How to control the clearing of cache

$
0
0

Replies: 1

Hi, I set the plugin nicely and it is doing great. I have one question though.
Currently I have minified css files, but when I do a small change to the file and save and then Purge all caches, I still receive the cached css file. If I try Ctrl + F5, it’s still the same. If I open in incognito, then I receive the updated css file. How can I actualy clear the cache and update the minifed css file? I am using Chrome.

issue with w3 total cache browser cache in edge browser

$
0
0

Replies: 0

When using the egde browser the woocommerce cart will be cached and therefore not updated properly if product are removed or added. This happens only in the edge browser and only if browser caching is enabled. How can this be fixed?

Thanks for any help.

Random posts slider with W3’s page cache

$
0
0

Replies: 1

Hi,

I’m using your great plugin and it pushes my sites to their best speeds.
BUT! I’ve now built a site with a posts slider showing random posts by each page load, and when using page cache – it won’t randomize.

My only solution was to tell W3 not to page cache the frontpage.

Is there any way to tell W3 not to cache the specific area/js/plugin?

TIA.

Load average increased after clear the W3cache plugin cache

$
0
0

Replies: 0

I have maintain the wordpress blog site. Once i have test my site load average time in JMeter. Before delete the w3cache i have initiate load count 100 and my load average was 05.34MS.

Then I clear the W3Cache plugin all cache and then process the load test in Jmeter. This time i have initiate load count 10 and my load average was passed above 100.84MS.

Please let me know what is the reason load average increased high speed. (I know after clear cache the page load time increase) but above 100MS is too much.

Viewing all 19291 articles
Browse latest View live


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