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

Programmatically editing the page exclusion list

$
0
0

Replies: 1

Hi there,

Is it possible to programmatically edit the page exclusion list? I use the template redirect hook quite extensively to the point where manually adding/removing every path which uses it or is not longer using it would be impossible.

I’ve had a look through some of the code and I can’t find anything referencing any kind of options entry or static text file.

Any ideas?

Cheers,
Robert


Auto Minify CSS returns “400 Bad Request”

$
0
0

Replies: 0

I have a WP installation where W3TC’s Auto Minify CSS feature is broken:

  • Fresh WP install, no plugins
  • W3TC v 0.9.5.4
  • All features disabled, except Minify CSS Auto, no URL rewriting

All URLs to the minified CSS file(s) return a 400 “Bad Request”.
How to fix this and let me know if more details on the server setup is needed!

Thanks,

Martin

  • This topic was modified 19 hours, 47 minutes ago by skarck.
  • This topic was modified 19 hours, 44 minutes ago by skarck.

W3 Total Cache – Possible to have custom expiry for different post types?

$
0
0

Replies: 0

First of all, great plugin that has helped a lot in optimizing my sites.

There are however a number of questions on the features of W3 Total Cache that I have been wanting to ask:

1. The TTL of the page cache is the same as the browser cache TTL. Why is this the case? I would think that a feature to allow users to set custom expiry for different post types would be ideal. Something similar to WP Fastest Cache or Cloudflare using their page rules system. Essentially these two system use URL patterns combined with regex to specify cache timeout and various other options. The rationale is that sometimes a site has a lot of static posts that does not need to be recached or purged, while concurrently having archive / categories / pages that list posts of which the first 5 pages or so should be purged frequently due to frequent updates. It would be very inefficient having to re-cache thousands of posts for a short period just to accommodate the updates that supposed to be reflected only on the first few pages of the archive pages. Because of this, one cannot set the expiry longer. But if one were to set it to a shorter period says 2 days, as there are so many static posts, sometimes the archive pages are not cached at all.

Another point would be that, the target of the browser cache and the page cache are essentially different. While the browser cache is mainly aiming at repeat visitors, the disk page cache is more beneficial for new visitors. To increase the expiry for the disk page cache, one will have to increase the expiry of the browser cache, essentially making repeat visitors unable to see fresh updates due to the longer expiry. But if one were to set a shorter expiry, then the site would become slower to new visitors. There needs to be a solution that helps large sites to cache more efficiently.

It would be great if this feature can be added into W3 Total Cache. If however a solution is already available but I wasn’t aware of it, please kindly enlighten me. Thanks so much.

PHP Fatal error: Cannot declare class JSMin_UnterminatedStringException

$
0
0

Replies: 0

After installing I get this error message. The whole site is down now!
[04-May-2017 11:49:25 UTC] PHP Fatal error: Cannot declare class JSMin_UnterminatedStringException, because the name is already in use in /home/deb96951n3/domains/company.com/public_html/wp-content/plugins/w3-total-cache/lib/Minify/JSMin.php on line 0
[04-May-2017 11:49:25 UTC] PHP Fatal error: Unknown: Cannot use output buffering in output buffering display handlers in Unknown on line 0

Compatibility with PHP 7

$
0
0

Replies: 0

Hi
Is W3 Total Cache v0.9.5.4 compatible with PHP 7?
Thanks

Issue, directly after installing plugin

$
0
0

Replies: 1

Hello,

I am facing an issue directly after installing this great plugin.
All pages look like the picture below:

W3 Total Cache Issue

Is this caused by a conflict between two plugins? Is there a simple solution for this issue?

Thanks in advance!

  • This topic was modified 6 hours, 37 minutes ago by hbplant.

W3TC – Browser Cache – max-age and expire headers are not set

$
0
0

Replies: 0

I’m glad using W3TC. Most things are really working fine and speeding up my website. 🙂

But I still have a problem with “Brower Cache”.
For example the following headers are not set.
– Cache-Control:max-age=2592000
– Expires:Sat, 03 Jun 2017 16:19:20 GMT

What may be the problem?
Is there a missing code in my .htaccess?
W3TC didn’t write any code for browser caching to the .htaccess.
But it has access to the file because there are some setting for page cache.
mod_expire is enabled

Can anyone give me a hint?

Thank you
Frank

Unable to clear minified cache

$
0
0

Replies: 0

Hello,

I have made changes to a JS file and now I would like to see the changes on my website.

These are the steps I followed:
1. Performance -> Minify -> empty cache and I also “Purge All Cache”.
2. Cleared my browsers cache/cookies
3. Refreshed the page and still cant see my changes to the JS file.

For now I have just disabled the minify JS and my changes are there and working.

Can someone please explain the proper procedure to clearing the cache for minified files? I have tried googling to find a solution with no luck.

Thanks.


Failing to create .htaccess inside page_enhanced

$
0
0

Replies: 0

Hello w3tc team,

I’m having some issues with a blog inside a Multisite installation. The issue is that after publishing an entry, the homepage tries to download a download.gz (which is the compressed/gziped html).

I did some troubleshooting and found that the .htaccess file inside the page_enhanced directory was missing, and it’s been doing the same for a couple of days.

The strange thing is that it only happens on this blog. Difference is the permalink for this blog ends with .html

I checked:
Directory permissions/owner.
W3TC was an older one, I just upgraded it today to the latest version.
main wordpress .htaccess file is not writeable.

Do you have any idea of what could be causing this issue?

This is the .htaccess file that’s suppose to be inside the page_enhanced directory:

# BEGIN W3TC Page Cache cache
AddDefaultCharset UTF-8
FileETag MTime Size
<IfModule mod_mime.c>
    AddType text/html .html_gzip
    AddEncoding gzip .html_gzip
    AddType text/xml .xml_gzip
    AddEncoding gzip .xml_gzip
</IfModule>
<IfModule mod_setenvif.c>
    SetEnvIfNoCase Request_URI \.html_gzip$ no-gzip
    SetEnvIfNoCase Request_URI \.xml_gzip$ no-gzip
</IfModule>
<IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType text/html M60
</IfModule>
<IfModule mod_headers.c>
    Header set Vary "Accept-Encoding, Cookie"
    Header set Pragma "public"
    Header append Cache-Control "public"
</IfModule>
# END W3TC Page Cache cache

Problems with minify. 404 error when trying to revert

$
0
0

Replies: 0

Hi,
So my website (https://www.airmovie.fr) is kind of working well (especially no issues on Firefox), but when I load it in Chrome or Safari, I get randomly a blank page.
Actually the site loads (I can see the source code) but it is mostly covered by a blank layer.

To recreate the issue, I type http:// instead of https or https:// without www, etc. and I randomly get the blank page. I am a beginner so I really don’t know why it happens so randomly…

When the issue happens, the Safari inspector gives me a few errors with JS files :
WPForm : ReferenceError: Can’t find variable: jQuery
imagesLoaded : TypeError: undefined is not an object (evaluating ‘e.each’)
Magnific Popup : TypeError: $ is not a function. (In ‘$(window)’, ‘$’ is undefined)

Those 3 js files are in the folder /wp-content/cache/minify/

So I guessed maybe the problem was coming from Minify and I tried disabling it in W3 Total Cache. But when I did, the files were deleted and I got 404 errors for my js files because wordpress still wanted to use their old path (/cache/minify/…) I thought W3 total cache would revert the javascript…
After re-enabling Minify in W3, it recreated new js files and the site is now “working” again. But with this random issue.

What do you think I should do? If I could just find why I get these random errors, I would be ok not to touch anything…

Thanks a lot in advance for your help!!!

Changing cdn reject files via a hook/filter

$
0
0

Replies: 0

Is there any filter available to update the cdn reject files array for the total cache plugin?

Activating Development Mode for Pro version

$
0
0

Replies: 0

When I use my license to try and test the plugin on the development server, I get the following message:

License key is correct but already in use on another site. See the FAQ for how to enable Pro version in development mode.

However, when I look in the FAQs, there is nothing there that details how to do that.

Does anyone have any ideas?

Thanks!

How to fix Eliminate render-blocking (above-the-fold content) for .CSS

$
0
0

Replies: 0

I using manual minify setting for my website.
All looking fine, just a confused problem on Google PageSpeed Insights:

Consider Fixing:

Eliminate render-blocking JavaScript and CSS in above-the-fold content
Your page has 1 blocking CSS resources. This causes a delay in rendering your page.

None of the above-the-fold content on your page could be rendered without waiting for the following resources to load. Try to defer or asynchronously load blocking resources, or inline the critical portions of those resources directly in the HTML.

Optimize CSS Delivery of the following:
https://www.persianwhois.com/…/minify/26952.default.include.c9d602.css

Problem exactly is here! “26952.default.include.c9d602.css” is available on minify manual setting.
I see “26952.default.include.c9d602.css” need to be above-the-fold. How can i fix this problem?

This plugin have something badly wrong!!

$
0
0

Replies: 1

I installed W3 Total Cache couple days ago into one of my multiblog, and almost immediately I start to get 500 errors, and blog went down.

I check from cPanel and find this:

Disk Space Usage 21.82 GB / 19.53 GB

Just 1 hour earlier my used space was under 4 GB.

I found from that blog folder a LOT 102MB or 103MB files named ‘core’kokoisia core + some number after, and files was like this:

core.521884
ELF 64-bit LSB core file x86-64, version 1 (SYSV), SVR4-style, from ‘/usr/bin/php /home/xxxxx/xxxxx/xxxxxxx/index.php’, real uid: 1801, effective uid: 1801, real gid: 1797, effective gid: 1797, execfn: ‘/usr/bin/php’, platform: ‘x86_64’

All had ‘Permission’ 0600, and type as ‘text/x-generic’.

I delete them all, but they came back in minutes.

There was also ‘error-log’ and when I open it, I saw this plugin name there and went to delete/remove it immediately .. blog is working with no problem now !!!

Does W3 Total Cache support PHP 7.1?

$
0
0

Replies: 1

Does W3 Total Cache support PHP 7.1?


Facing Serious Issues with W3TC. Please Help

$
0
0

Replies: 0

Hey there,

I am facing serious issues with my WordPress site that gets around 600 visitors online at peak times. From tomorrow night it was going down over and over.

The site is hosted on GoDaddy Value Dedicated server with 8 GB ram and 4 core CPU. It is also using cloudfornt and CloudFlare.

The plugins I am using are-

W3 total cache
Yoast SEO
Visual Composer
Akismet
All In One WP Security
Easy Social Share Buttons
and a few other small plugins that I don’t think could cause a problem.

These are the errors it was displaying in error log-

1) PHP Warning: Error while sending QUERY packet. PID=2190 in /home/abc/public_html/wp-includes/wp-db.php on line 1877

2) WordPress database error Query execution was interrupted for query SELECT p.ID

3) WordPress database error Query execution was interrupted for query SELECT SQL_CALC_FOUND_ROWS

I noticed in the log that the first error was coming since 5 months, but there was no issue with the website. But the last two errors started coming since tomorrow night, and that’s when the site started to go down.

I also noticed that this error – WordPress database error Query execution was interrupted for query SELECT appeared at the same time at which I published a post.

One more issue I am facing since a month is that when I click on publish to publish a new post, it keeps loading for a few seconds, and then WordPress displays 404 error. That’s the same thing happened tomorrow night

I checked in WHM at the time of the error, the Server Load was 95.134 (4 CPUs) but memory used was quite low around 3%.

So, today morning I disabled the W3TC from Cpanel to check if the issue is due to it. And to my surprise, everything when fine, the site is loading fast and the Server Load when down to 0.774414 (4 CPUs).

I checked in Pingdom for the speed without any caching plugin and CDN, and the speed was around 4.2 seconds for a post with 8 to 10 images. It used to be around 3.2-3.5 for the same post.

I don’t think there is a major impact on the speed of site after removing W3TC and CDN.

Is this error due to a misconfiguration in W3TC settings (I was not using database caching)?

Is it due to compatibility issues?

Or can I be due to MySQL or misconfiguration I server?

I was wondering what to do now? Should I try deleting the plugin completely and reinstall and reconfigure it from scratch or should I switch to another plugin?

Last-Modified Header Questions

$
0
0

Replies: 2

Why is the ‘Last-Modified’ header unset for a variety of headers?

GTMetrix complains that there is no Last-Modified header for SVG, when I looked into it, it appeared that it is being removed by W3 Total Cache on purpose. I couldn’t find any settings controlling this setting or why it’s being unset to begin with. Where is this controlled and why is it being removed?

<FilesMatch “\.(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|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)$”>
<IfModule mod_headers.c>
Header unset Last-Modified
</IfModule>
</FilesMatch>

w3 total cache dosen’t work

$
0
0

Replies: 0

I have installed this plugin
but it dosen’t work
when i press save settings button
it shows to me this message “Can’t change configuration: Can’t write to temporary file ”

where is the problem and how can i fix it?

  • This topic was modified 12 hours, 11 minutes ago by hi4best.

Browser Caching & Logged in Pages

$
0
0

Replies: 0

I have a buddypress website and I want to use browser caching. When a user logs into the site some of the content changes (the menu changes mostly). However with browser caching when the user logs in and goes to a page they viewed when not logged in it looks like they’ve been logged out, because it shows the cached version that was created before they logged in.

Is there a way to tick the browser cache option but have it refresh the cache when the user logs in or something like that?

I am using the latest version of the w3tc plugin and wordpress.

Website only displaying latest posts when Crtl +F5 is used

$
0
0

Replies: 0

Hi I don’t know is this is linked to this plugin but it does seem to be something weild with caching on my site.

When you navigate to my site by typing in the url http://www.geeksyndicate.co.uk it is showing the latest post as dated 26th April. This is not the case as we have posted several articles since that date. If you a CTRL + F5 the site refreshes and you see the new posts. The problem is when you type in the address again it loses the posts again.

I tried emptying all the caches but the problem remains

Any and all ideas welcome.

Viewing all 19291 articles
Browse latest View live


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