Skip to main content

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
2 answers
187 views

How to make Wordpress ignore GET parameters when caching pages?

Situation: there is a WordPress site, a small article-based site. It loads not very quickly (500-600ms), but with caching, the values are much better (20-30ms). The problem arises when accessing a ...
LeTraceurSnork's user avatar
0 votes
1 answer
47 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){ ...
user218247's user avatar
0 votes
0 answers
1k 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: ...
Sandeep Naskar's user avatar
0 votes
1 answer
50 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() ...
Nikolay Dyankov's user avatar
0 votes
0 answers
67 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
113 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 ...
Sahasrar's user avatar
1 vote
0 answers
305 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/...
Md Parvej Ansari's user avatar
0 votes
0 answers
35 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?
Udara's user avatar
  • 101
1 vote
3 answers
3k 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?
Kimsea Sok's 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. ...
Geraldine's user avatar
0 votes
1 answer
210 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 ...
AYMEN SOUMER's user avatar
0 votes
0 answers
67 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 ...
Marc's user avatar
  • 357
2 votes
2 answers
2k 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. ...
Nilesh G's user avatar
  • 182
1 vote
0 answers
30 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'...
Islam Mohamed's user avatar
0 votes
3 answers
1k 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" ...
Jonas Borneland's user avatar
0 votes
1 answer
707 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 ...
gio's user avatar
  • 101
1 vote
1 answer
1k 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 ...
Islam Mohamed's user avatar
2 votes
2 answers
10k 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 ...
Chris's user avatar
  • 21
2 votes
1 answer
934 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 ...
beginner's user avatar
  • 161
2 votes
1 answer
688 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 ...
learning_13's user avatar
0 votes
0 answers
44 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 ...
NVO's user avatar
  • 143
0 votes
1 answer
1k 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 ...
Peter Gerhat's user avatar
1 vote
2 answers
421 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 ...
ARMBouhali's user avatar
0 votes
0 answers
357 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 ...
Basheer's user avatar
0 votes
0 answers
140 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?
Evgeniy's user avatar
  • 105
0 votes
1 answer
4k 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" ...
E. Jaep's user avatar
  • 109
0 votes
0 answers
479 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 ...
Mithun Nath's 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 ...
jcuk's user avatar
  • 103
0 votes
1 answer
49 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 = ...
Anand Rk's user avatar
1 vote
0 answers
209 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 ...
WSW's user avatar
  • 11
1 vote
1 answer
748 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('...
Edward's user avatar
  • 439
1 vote
1 answer
962 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 ...
Sid's user avatar
  • 776
1 vote
2 answers
3k 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?
Gabriel Souza's user avatar
1 vote
0 answers
254 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 ...
excessive34's user avatar
0 votes
1 answer
250 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/...
wpinfo2017's 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 ...
Joe's user avatar
  • 11
0 votes
0 answers
32 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.
sonubreeze's user avatar
1 vote
2 answers
2k 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 ...
Sam's user avatar
  • 11
0 votes
1 answer
108 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 ...
frabiacca's user avatar
  • 257
24 votes
1 answer
2k 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 ...
CK MacLeod's user avatar
  • 1,857
0 votes
2 answers
2k 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 ...
Game Unity's user avatar
1 vote
0 answers
156 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. ...
stuckinamiddle's user avatar
0 votes
1 answer
112 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.
Revious's user avatar
  • 323
1 vote
1 answer
50 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.
Xaib Aslam's user avatar
1 vote
0 answers
570 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 ...
Leo Jiang's user avatar
  • 153
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 ...
Simone Nigro's user avatar
-2 votes
3 answers
261 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 ...
NewBee's user avatar
  • 19
0 votes
1 answer
4k 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 ...
JSum's user avatar
  • 103
0 votes
2 answers
148 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 ...
Riyajul Islam's user avatar
0 votes
1 answer
3k views

White blank page when Updating/Draft/Publishing Page/Post

On my VPS (centos 6.7 64x, 2 cpu's and 3gb ram) I have setup a WP MU(Memory usage: 53.97 MByte)and many times I have a blank page when I make a post draft or publish/updating it, or when I want to ...
Alex's user avatar
  • 167

1
2 3 4 5