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

w3-total-cache incorrectly removes ?ver= parameter from CSS styles and scripts

$
0
0

Replies: 3

Hi,

I’m back with another bug report that I was able to finally trace in W3-total-cache.

The problem occurs when in W3TC settings -> Browser cache -> CSS/JS -> “Prevent caching of objects after settings change” is turned on. Instead of appending the ?xNNNN cache bust value to the urls, it incorrectly overrides and erases the ?ver= parameter entirely.

For example,
<script type='text/javascript' src='http://SITE/wp-content/themes/THEME/js/example.js?ver=4.7.2'></script>
becomes
<script type='text/javascript' src='http://SITE/wp-content/themes/THEME/js/example.js?x41610'></script>
instead of
<script type='text/javascript' src='http://SITE/wp-content/themes/THEME/js/example.js?ver=4.7.2&x41610'></script>

This means that the cache will only be busted when new W3TC settings are saved rather than when the WP version or file version changes.

The bug in W3TC 0.9.5.2 is here:
$test_url = Util_Environment::remove_query( $url ); on line 215 of BrowserCache_Plugin.php

In turn:

static public function remove_query( $url ) {
  $url = preg_replace( '~[&\?]+(ver=([a-z0-9-_\.]+|[0-9-]+))~i', '', $url );
return $url;
}

is on line 837 of Util_Environment.php.

As you can see, it empties out ver= for some reason, which is incorrect behavior.

Can we hope for a fix? I’d like to keep this setting enabled, but for now I’m forced to turn it off.

  • This topic was modified 12 hours, 15 minutes ago by  archon810.

Need the Ability to override configurations settings

$
0
0

Replies: 1

My team uses GIT when working with WordPress and currently we run into an issue when pushing the configurations for w3tc. Since version 9.5 “master.php” is now in a json format which doesn’t let my team use php to customize the settings.

We need the ability to override the config settings.
Since we need the overrides to work with pagecache we need to be able to do this in wp_config.php.

I suggest allowing constants to be set in the wp-config.php file.
Like this:


define('W3TC_CONFIG.pgcache.enabled', '1');
define('W3TC_CONFIG.pgcache.engine', 'memcached');
define('W3TC_CONFIG.pgcache.memcached.servers', '["123.123.123.123:11211"]');
define("W3TC_CONFIG.pgcache.cache.ssl", "1");

Again, I would need these to override any user settings to the client or other users don’t mess up the settings that we configure. I would prefer that anything that is defined in the Settings Page is Grayed out and not able to change. This would be an indicator that the settings are overwritten in the code.

As you can see the main reason for this is that since we use load balanced hosting our memcacheD server IP changes periodically. We are able to get the IP from ENV Vars with PHP, but don’t know how to set it with the way the plugin currently is.

Thanks

CDN on admin view of media

$
0
0

Replies: 2

Have my CDN set up properly, as far as I can tell. It’s great that uploading items uploads them direct to CDN instead of to local then synced to CDN….

However, in my Media tab (and in editing any posts or pages) ALL media items show up as broken links… which they are, as they link to where the local file should be. No files are showing up in the wp-content/uploads folder, but they are populating in my S3 bucket under wp-content/uploads

Our website Performs BAD

PHP Notice logs

$
0
0

Replies: 1

[14-Feb-2017 13:39:57 UTC] PHP Notice: Trying to get property of non-object in /var/www/html/xxxxxxxxxxxxx/web/wp-content/plugins/w3-total-cache/PgCache_Flush.php on line 62
[14-Feb-2017 13:39:57 UTC] PHP Notice: Trying to get property of non-object in /var/www/html/xxxxxxxxxxxxx/web/wp-content/plugins/w3-total-cache/PgCache_Flush.php on line 63
[14-Feb-2017 13:39:57 UTC] PHP Notice: Trying to get property of non-object in /var/www/html/xxxxxxxxxxxxx/web/wp-content/plugins/w3-total-cache/PgCache_Flush.php on line 62
[14-Feb-2017 13:39:57 UTC] PHP Notice: Trying to get property of non-object in /var/www/html/xxxxxxxxxxxxx/web/wp-content/plugins/w3-total-cache/PgCache_Flush.php on line 63
[14-Feb-2017 13:39:57 UTC] PHP Notice: Trying to get property of non-object in /var/www/html/xxxxxxxxxxxxx/web/wp-content/plugins/w3-total-cache/PgCache_Flush.php on line 62
[14-Feb-2017 13:39:57 UTC] PHP Notice: Trying to get property of non-object in /var/www/html/xxxxxxxxxxxxx/web/wp-content/plugins/w3-total-cache/PgCache_Flush.php on line 63
[14-Feb-2017 13:39:57 UTC] PHP Notice: Trying to get property of non-object in /var/www/html/xxxxxxxxxxxxx/web/wp-content/plugins/w3-total-cache/PgCache_Flush.php on line 62
[14-Feb-2017 13:39:57 UTC] PHP Notice: Trying to get property of non-object in /var/www/html/xxxxxxxxxxxxx/web/wp-content/plugins/w3-total-cache/PgCache_Flush.php on line 63
[14-Feb-2017 13:39:57 UTC] PHP Notice: Trying to get property of non-object in /var/www/html/xxxxxxxxxxxxx/web/wp-content/plugins/w3-total-cache/PgCache_Flush.php on line 62
[14-Feb-2017 13:39:57 UTC] PHP Notice: Trying to get property of non-object in /var/www/html/xxxxxxxxxxxxx/web/wp-content/plugins/w3-total-cache/PgCache_Flush.php on line 63
[14-Feb-2017 13:39:57 UTC] PHP Notice: Trying to get property of non-object in /var/www/html/xxxxxxxxxxxxx/web/wp-content/plugins/w3-total-cache/PgCache_Flush.php on line 62
[14-Feb-2017 13:39:57 UTC] PHP Notice: Trying to get property of non-object in /var/www/html/xxxxxxxxxxxxx/web/wp-content/plugins/w3-total-cache/PgCache_Flush.php on line 63
[14-Feb-2017 13:39:57 UTC] PHP Notice: Trying to get property of non-object in /var/www/html/xxxxxxxxxxxxx/web/wp-content/plugins/w3-total-cache/PgCache_Flush.php on line 62
[14-Feb-2017 13:39:57 UTC] PHP Notice: Trying to get property of non-object in /var/www/html/xxxxxxxxxxxxx/web/wp-content/plugins/w3-total-cache/PgCache_Flush.php on line 63
[14-Feb-2017 13:39:57 UTC] PHP Notice: Trying to get property of non-object in /var/www/html/xxxxxxxxxxxxx/web/wp-content/plugins/w3-total-cache/PgCache_Flush.php on line 62
[14-Feb-2017 13:39:57 UTC] PHP Notice: Trying to get property of non-object in /var/www/html/xxxxxxxxxxxxx/web/wp-content/plugins/w3-total-cache/PgCache_Flush.php on line 63
[14-Feb-2017 13:39:57 UTC] PHP Notice: Trying to get property of non-object in /var/www/html/xxxxxxxxxxxxx/web/wp-content/plugins/w3-total-cache/PgCache_Flush.php on line 62
[14-Feb-2017 13:39:57 UTC] PHP Notice: Trying to get property of non-object in /var/www/html/xxxxxxxxxxxxx/web/wp-content/plugins/w3-total-cache/PgCache_Flush.php on line 63

Cache with query string parameters

$
0
0

Replies: 1

There is a strange behaviour if we activate the “Cache URIs with query string variables” checkbox.
The post is cached correctly with query parameters, but if we edit the post in the backend now, it normally should delete the cache for this page (with and without the query parameters), but it only clears the cache for the page url without query string parameters.
It seems that the cache key is based on the url in the frontend, but the backend only clears the cache for the url without query string parameters.
Is there any workaround/fix for this issue?

Strange symbols

$
0
0

Replies: 1

It worked beautiful until recent update. Now each page of my web site displays strange symbols when this plugin is turned on. These symbols disappeared after reloading, but appeared on new pages.

I had to disable this plugin. Hope to see it fixed soon.

  • This topic was modified 1 hour, 6 minutes ago by  Tom.

CDN using soft hosted, how to support SFTP transmission?

$
0
0

Replies: 0

My hosted does not support FTP, FTPS, only support SFTP T_T

W3 how to set up to support SFTP?


W3TC crashes my checkout page

$
0
0

Replies: 0

Right when I thought finally I got it without destryoing my page I saw by accident (thank god) that It destroys my checkout page.

Anyone know whatsup/wrong? 🙁

Help please. Thx

  • This topic was modified 8 hours, 3 minutes ago by  paul85.

W3 Total Cache: Wich file requests js file

$
0
0

Replies: 0

Hey,

I wanted to combine my js Files, so I need to remove the js request of /wp-content/cache/minify/33ffe.default.include-footer.3642db.js?x36211

In which file I can find this request? Is there a way to find that out?

Thank you!

page encoding error

$
0
0

Replies: 0

Hello,
If we turn of the debug information then we got the “Page encoding error”
could you please assist?

Fatal error: Unknown: Cannot use output buffering in output buffering display…

$
0
0

Replies: 0

I got this error:
Fatal error: Unknown: Cannot use output buffering in output buffering display handlers in Unknown on line 0
I did some searching around and had to clear the minify cache to get rid of the error.
Seems to be working ok so far.
Any idea what I need to do to permanently fix this issue?

  • This topic was modified 2 minutes ago by  minigawa.

Cache is not working

$
0
0

Replies: 2

Hi, I have your plugin activated on a wpms. Sometimes I edit something and take a look in a another not logged browser, which after refreshed has everything changed as well. Is not it a symptom that the plugin is not working? How can I be sure it is working? Thank you!

Gibberish page after W3TC update, due to HTTP (gzip) compression

$
0
0

Replies: 0

I have one page that is gibberish after updating from a few versions back to the current version of W3 Total Cache. It looks similar to this-
https://pbs.twimg.com/media/C2e9quQWIAAEPiV.jpg

I narrowed the problem down to toggling the Browser Cache checkbox on the General Settings screen. Then I narrowed it down further to the checkbox for “Enable HTTP (gzip) compression” on the Browser Cache settings page. When that is enabled, the page and source is gibberish. Prior to my update of W3 Total Cache, this didn’t cause a problem because it had been enabled this whole time.

Wordpress version was 4.5.2, but I updated to 4.7.2 and it still occurs.
PHP version is 5.5.9.

This sounds similar to the problem discussed here – https://wordpress.org/support/topic/website-sporatically-breaks-with-w3-enabled/

But my PHP version is higher than 5.3 as mentioned there. Anyway I tried the same fix discussed there but that did not help.

It’s strange this only occurs on one page that I am aware of so far. I will try checking into that more. I don’t know what it does differently. I have several pages very similar to it in structure and they work fine.

Thanks for any help!

Auto invalidate CloudFront Cache for all .css and .js files for plugin, once upd

$
0
0

Replies: 0

Feature request: Auto invalidate CloudFront Cache for all .css and .js files for plugin, once the plugin is updated via WordPress. Thoughts?


Does the DBcache Log file can be infected by Malware

$
0
0

Replies: 0

During our regular scans, we have found malicious files in your account which may be infected with malware.
wp-content/cache/log/000000/dbcache.log

This is the second time, I’m getting the same Warning from my Hosting the same file is infected.

Outbound Port 80, 443, 587 and 465 for your account are Blocked.

Cache Clear Timing Out

$
0
0

Replies: 0

Hi

I had a server outage overnight and W3TC has cached the error page that was being thrown. I’m trying to empty the cache from the Performance menu, but my server is timing out during the process.

Can I clear the cache manually via FTP by deleting the wp-content/cache folder? Or another folder elsewhere?

Many thanks

Turn Off Rewrite Slug

$
0
0

Replies: 0

I am using Layers template with Yoast SEO.

Since installation of Yoast V 4.2.1 launching the Layers customizer (Layers Pro 1.6.7) yields a 500 error.

Layers support says there should be no issue and suggests that I check to make sure that “rewrite slugs” is disabled. Can someone point me to this switch?

Thanks!

W3 Total Cache Error

$
0
0

Replies: 0

Each of these codes are appearing on my WordPress. I delete w3 cache after it crashed my site. Also, I can’t find the files on my cpanel or my php admin. Can someone help me.

W3 Total Cache Error: some files appear to be missing or out of place. Please re-install plugin or remove /home/compul10/public_html/main/wp-content/db.php.
W3 Total Cache Error: some files appear to be missing or out of place. Please re-install plugin or remove /home/compul10/public_html/main/wp-content/object-cache.php.

Warning: session_start(): Cannot send session cache limiter – headers already sent (output started at /home/compul10/public_html/main/wp-content/db.php:21) in /home/compul10/public_html/main/wp-content/plugins/cta/classes/class.cta.variations.php on line 38

Warning: Cannot modify header information – headers already sent by (output started at /home/compul10/public_html/main/wp-content/db.php:21) in /home/compul10/public_html/main/wp-includes/option.php on line 828

Warning: Cannot modify header information – headers already sent by (output started at /home/compul10/public_html/main/wp-content/db.php:21) in /home/compul10/public_html/main/wp-includes/option.php on line 829

Change directory (url) of cached files

$
0
0

Replies: 0

Hi there,

I’m a happy user of the W3 Total Cache plugin. But I have a question, is it possible to change the location of the cached files?

For example:
The current location of my minified Javascript is https://domain.com/?w3tc_minify=7c468.js
I woud like to change it to: https://domain.com/wp-cached/?w3tc_minify=7c468.js

Is this possible? And how does it works?
Thanks in advance!

Sincerely,
Stef Dijkstra – s.dijkstra@lijnrecht.nl

  • This topic was modified 2 hours, 14 minutes ago by  Stef Dijkstra.
Viewing all 19312 articles
Browse latest View live


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