Questions tagged [plugin-w3-total-cache]

Improve site performance and user experience via caching: browser, page, object, database, minify and content delivery network support.

Filter by
Sorted by
Tagged with
0 votes
1 answer
18 views

How do I create a link in the WP admin bar that purges all caches (W3 Total Cache)?

I'm trying to create a link in the top admin bar with a single link to purge all caches. However, after awhile the nonce expires. How can I make this work? function add_toolbar_items($admin_bar){ ...
user avatar
0 votes
0 answers
10 views

Changing WP Object Caching during runtime

If I an external object cache (provided by W3TC), but in specific usecases use wp_using_ext_object_cache(false) during Runtime somewhere in the middle of the WP page - Does this change during effect ...
user avatar
  • 152
0 votes
0 answers
17 views

Memcaching recurring SQL Queries

I have a highly dynamic Buddypress page with integrated WPML translation. Right now I'm optimizing a lot of things and using "Query Monitor", I found out, that there are about ~50 Queries on ...
user avatar
  • 152
0 votes
0 answers
443 views

Content-Security-Policy implementation with WordPress W3Total Cache plugin installed

Documentation about this says to avoid inline script and css Error: Refused to execute inline script because it violates the following Content Security Policy directive: What I have used so far: ...
user avatar
0 votes
1 answer
18 views

How to add support for caching plugins for my own plugin?

Is there a generic way to support caching plugins? For example to set a flag after you update an option that caching plugins watch? For example WP Super Cache has this: function wp_cache_clear_cache() ...
user avatar
0 votes
0 answers
45 views

Google Page Speed

My website is in Wordpress so I am asking question regarding Google Page Speed here. My issue is i had completed the development of home page of existing page now when i am trying to check the score ...
user avatar
0 votes
1 answer
47 views

Language does not switch while cache is enabled

At my website I have a button when pressed PHP script through ajax write session variable to change language and reload page. But when I enable caching every time is loading default language. When ...
user avatar
1 vote
0 answers
194 views

W3 Total Cache JS and css Minify folder are empty

When i enable Multisite using subdirectories function and minify file status “404” so my multisite subdirectory not working properly, because minify folder are empty /var/www/html/wp-content/cache/...
user avatar
0 votes
0 answers
31 views

My wp database has been hacked

My database has hacked by someone and removed it. But my site still working because of W3 Total Cache. Is there any way to get old database by using W3 Total Cache?
user avatar
  • 101
0 votes
2 answers
1k views

How can I disable W3 Total Cache Image Lazy Load for Specific Post Type?

I'm using W3 Total Cache plugin for my WordPress site. I've enabled Lazy Load setting option, but I want to disable the option for the specific post type. How can I hook and disable it?
user avatar
0 votes
0 answers
1k views

W3 Total Cache Error: some files appear to be missing or out of place. Please re-install plugin or remove

I used to have the "This site is experiencing technical difficulties." error message and went to CPanel to change the wp-config file and change the WP_Debug false to true but it's showing more error. ...
user avatar
0 votes
1 answer
114 views

Clear cache when comment is added

I am using wordpress total cache, and i need to clear cache every time a comment is added or modified <?php $w3_plugin_totalcache->flush_all(); ?> i found this method but , i don't know ...
user avatar
0 votes
0 answers
58 views

Browser detection booleans mess. Caché plugin?

Hello, I have an issue concerning the Browser Detection Booleans. Sometimes, being in Chrome or Firefox, the page is served as being in IE, as in the attached image. Can this be related to the fact ...
user avatar
  • 275
2 votes
2 answers
855 views

What is difference between 'Page Cache' and 'Object Cache' in WordPress?

I am optimizing my WordPress website. I am using 2 WordPress plugins right now. First one is 'Autoptimize' for optimizing CSS, JS, and HTML. And another one is 'WP Super Cache' for caching pages. ...
user avatar
  • 182
1 vote
0 answers
18 views

How to cache a different page version based on HTTP header?

My website has an HTTP response header generated by Cloudflare that contain the visitor country code, and i can use that header in PHP to generate a dynamic content based on the visitor country, now i'...
user avatar
0 votes
3 answers
769 views

W3 Cache redirects to front page when I press purge all caches

I migrated my site to a new server. Everything seems to be fine, but the browser is redirected to the frontpage when I save configurations in either the "W3 Total Cache" plugin or in "Duplicate post" ...
user avatar
0 votes
1 answer
596 views

Unable leverage Browser Caching on AWS Bitnami stack (Apache) through W3TC and Cloudfront CDN

I followed many tutorial about leveraging browser caching nevertheless I couldn't configure it succesfully, in fact GTmetric (PageSpeed and YSlow) notified me many static file that don't have a cache ...
user avatar
  • 101
1 vote
1 answer
670 views

How to prevent those PHP variables from being cached on WordPress?

I'm using this code in functions.php on WordPress to generate an affiliate link based on the visitor location, It's working perfectly but the problem is that if page caching is turned on (W3 Total ...
user avatar
2 votes
2 answers
8k views

How to fix "failed to set referrer policy: The value ' ' is not one of..."?

So I am not sure where to start with this problem. Client is unable to see this page: https://www.godental365.com/patient-reviews/ It does not seem to load for them or a few people in my office. I ...
user avatar
  • 21
2 votes
1 answer
711 views

How can I render shortcode so that its not cached by Caching plugins?

I am developing a plugin and I don't want the output of my shortcode to be cached by popular WordPress caching plugins like W3Ttoalcahe, WPSuperCache, etc. Is there any way I can achieve that or ask ...
user avatar
  • 131
1 vote
1 answer
463 views

Will cron job run if page loaded is being served from cache?

As a cron job does not run until a page load request comes, what will happen in case page-loaded is being served from cache by some caching plugin? Will WordPress still run a cron job that is ...
user avatar
0 votes
0 answers
35 views

Wordpress varnish pages printed twice

We have installed varnish on our server today to speed up our webshop. And it is very effective. We use W3 Total Cache configured with MaxCDN and Redis to manage the cache in WordPress. But some pages ...
user avatar
  • 143
0 votes
1 answer
995 views

Add a Script button in W3 Total Cache plugin not working due to conflicting jQuery version

While trying to fix the Render-Blocking issue on my website, I ran into a problem with the W3 Total Cache plugin on its Minify settings page. The two buttons to add JS (Add a script) and CSS (Add a ...
user avatar
1 vote
2 answers
252 views

Make WordPress cache permanent for some pages until edited

Many WordPress websites contain pages or posts that are rarely updated. The server load can be reduced for these pages through page cache plugins such as WP Cache or W3 Total Cache. However such ...
user avatar
0 votes
0 answers
254 views

Serving cache from multiple domain names

I'm using W3 total cache for caching and I've many js files with sizes larger than 100KB in the cache folder. My idea is to serve cache folder from different subdomains (All files are hosted in the ...
user avatar
0 votes
0 answers
124 views

Pre-Caching and Googlebot

There are some wp-plugins which do pre-caching. If Googlebot is coming to crawl a website, what site version is served to it: a dynamic one or the one from server cache, generated through pre-caching?
user avatar
  • 101
0 votes
1 answer
3k views

How to disable cache for the content returned by a shortcode

we have wrote a shortcode that returns a different content based on a timestamp. The typical business case is: "Before the 1st of January, display "registrations will be open on the 1st of January" ...
user avatar
  • 109
0 votes
0 answers
465 views

Wordpress Dashboard shows no plugins installed!

One of the websites that I'm working with, have some issues with designs and nothing really works they it used to. When I looked at the Plugins list, it shows there is no plugins installed. but from ...
user avatar
0 votes
1 answer
2k views

How to set up the REST API to refer to media on a CDN

I'm using the Wordpress as a headless server to supply the content for a react based web app, and I'm trying to get the media served via a CDN. I have set up the W3-Total-Cache plugin which is ...
user avatar
  • 103
0 votes
1 answer
41 views

Wordpress Userroles button getting cached

I am having different buttons for different users in my site, i have used the below code to create those. <?php global $user_login, $current_user; get_currentuserinfo(); $user_info = ...
user avatar
1 vote
0 answers
204 views

Wordpress Leverage browser caching Show how to fix & Eliminate render-blocking JavaScript and CSS in above-the-fold content Show how to fix

Good afternoon , as the title says I have the following problems that I tried and cannot find a solution for , I already tried the different solutions people posted here in different topics . So ...
user avatar
  • 11
1 vote
1 answer
583 views

Will setcookie work if there is a cache plugin installed?

A cache plugin in WP will cache PHP output, but does it include HTTP header? For example, add a piece of code as following: add_action('wp', 'my_cookie' ); function my_cookie() { setcookie('...
user avatar
  • 409
1 vote
1 answer
919 views

Adding a SSL Certificate

This is the first time I am moving any website to SSL. I am working on a pretty heavy website. It is using CloudFlare and W3TC to maintain the page load speed. Now I came to know having an SSL ...
user avatar
  • 746
1 vote
2 answers
2k views

With W3 Total Cache when I publish a post it does not appear in the homepage. Only if i purge all cache [closed]

If you go to the ps4 page you will see that the last post is there My Site Is it necessary to do something for the post to appear on the homepage or should it appear by default?
user avatar
1 vote
0 answers
237 views

Losing preview ability: W3 Total Cache + Post name permalinks

I've been seeing issues on sites when I enable W3 Total Cache (Using an aws cdn) where the ability to preview pages would be lost. I was just able to confirm this when enabling it on a new site. A ...
user avatar
0 votes
1 answer
195 views

custom php file inside my custom folder of plugins directory is not caching

I am using W3-Total-Cache plugin, here is my plugin configurations : I am trying to implement caching on my custom php file. I have created a folder (api) inside plugins directory. i.e /wp-content/...
user avatar
0 votes
0 answers
10k views

expires header in w3 total cache

Hello i read about expires header and as i understand it's very important but it's dangers because visors will not see the changes that happen on my site, so my question can enable expires header and ...
user avatar
  • 11
0 votes
0 answers
23 views

Primary Menu doesn't show because of w3 cache

When I active w3 total cache, my site's primary menu doesn't load. Sometimes when my site takes some time to load only then menu appears.
user avatar
0 votes
2 answers
1k views

How to exclude a widget from W3 Total Cache Plugin

I am using a currency widget to show live currencies for different countries. I also use W3 Total Cache plugin and the widget data is cached. For example yesterday's prices are shown for today and I ...
user avatar
  • 1
0 votes
1 answer
91 views

w3 total cache uninstall remove cache

I'm experiencing a hug problem on a wordpress website. I have to migrate this website to new hosting provider; actually old developer used to install 'n setup w3 total cache plugin that I'd like to ...
user avatar
  • 247
24 votes
1 answer
1k views

Is this Solution for Caches vs Cookies Going to Get Me in Trouble?

I've come up with a provisional solution for a not exactly common, but far from unprecedented problem with the interaction of popular WP caching solutions with cookies, in this case the standard WP ...
user avatar
  • 1,799
0 votes
2 answers
1k views

Remove "?repeat=w3tc" from any url

Some how W3 Total Cache produce on some pages this prefix "?repeat=w3tc". And I really want to remove this from my urls, but my research didn't help me. Edit: I'm using other plugins now - The ...
user avatar
1 vote
0 answers
124 views

Is it wise to add plugins to the Object Cache?

My WP site relies heavily on plugins that our readers can interact with, for example a Buzzfeed-like quiz plugin that puts heavy loads on my server. I use W3 Total Cache to minimise that server load. ...
user avatar
0 votes
1 answer
108 views

Object Caching Plugin force every plugin to cache objects?

Can caching plugins (like w3 Total Cache or similar) force themes and plugins to use cache for every object instantiated? Or are they just optimizing plain WordPress.
user avatar
  • 289
1 vote
1 answer
42 views

I am getting useless alphabets in images link

I dont know why i am getting extra alphabets and question mark in my image links. Please take a look Can any one tell me how I can fix this issue.
user avatar
1 vote
0 answers
429 views

Running code before object-cache.php runs

I want to polyfill some functions before object-cache.php runs. I have PHP7 and APCu installed. However, W3 Total Cache is using apc_* functions, not apcu_* functions. W3 Total Cache's object cache ...
user avatar
  • 133
1 vote
0 answers
1k views

W3 Total Cache: use cache for request with ignorable query string [closed]

Currently W3 Total Cache use cached page only if query string is empty, the rule is: RewriteCond %{QUERY_STRING} ="" in this code (from .htaccess): # BEGIN W3TC Page Cache core <IfModule ...
user avatar
-2 votes
3 answers
254 views

To what degree can use of caching-plugins and a CDN boost WordPress performance? [closed]

I realize that this question is being asked in a very generic fashion, without detailed specifics of the configuration in question, and thus I am not expecting answers that go beyond anything but ...
user avatar
  • 19
0 votes
1 answer
3k views

How can I cache font files on Wordpress [closed]

The caching portion of all of the speed tests fail on my site because I am using font files to pull in my fonts. I am using w3 Total Cache, and KeyCDN. The font files are hosted in a folder inside ...
user avatar
  • 103
0 votes
2 answers
141 views

Website pagespeed problem

I have a WordPress website. I've tested it for speed test with google tools, but I see some of errors like this: Leverage browser caching Setting an expiry date or a maximum age in the HTTP headers ...
user avatar

1
2 3 4 5