Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [plugin-w3-total-cache]

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

1
vote
1answer
116 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 ...
0
votes
1answer
136 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 ...
0
votes
1answer
470 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 ...
0
votes
1answer
775 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" ...
0
votes
1answer
28 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 = ...
0
votes
1answer
68 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/...
0
votes
1answer
7k 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 ...
0
votes
1answer
587 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 ...
0
votes
1answer
73 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 ...
0
votes
1answer
133 views

RegExp to EXCLUDE strip HTML (FOR SOMME) comments

I'm using this function to remove HTML comments from my code to save loading time: // Remove unwanted HTML comments function remove_html_comments($content = '') { return preg_replace('/<!--(.|\s)*?...
0
votes
1answer
27 views

Plugin files not updated (cache cleared)

I'm manually uploading a plugin that I created, but no changes take effect and the file editor shows no changes unless I change the filenames within the plugin. I've already tried doing this while ...
0
votes
1answer
175 views

Manually cache a special, non-WP-but-using-WP page (e.g. Ajax results) with W3TC

Under the active theme folder, I have a search-autocomplete.php file which uses various WP queries to create smart JSON results delivered via AJAX to a jQuery UI Autocomplete input field. It's not a ...
0
votes
1answer
206 views

using .htaccess only for wordpress security no plugins

Right now I am using bulletproof wordpress security for my websites, but when i am installing W3 Total Cache plugin it gives me some errors related to .htaccess file and bulletproof wordpress security ...
0
votes
1answer
330 views

Pagination in WP query with transient API

I have integrated WordPress transient system with w3 total cache. Now I can`t to do pagination for this query. <?php $paged1 = (get_query_var('paged1')) ? get_query_var('...
-1
votes
1answer
2k views

Too many index.php files running and eating up all memory

I have wordpress site installed on dedicated server. From few days I'm experiencing high memory consumption on this cpanel account and it is slowing my wordpress site Then I examined Process Manager ...
3
votes
0answers
104 views

Combine JS and CSS for WordPress admin

I am using W3 total cache which allows me to combine JS and CSS in the forward facing site, but is there any way I can do the same for the admin/backend/dashboard area. I can't think of a technical ...
2
votes
0answers
359 views

How can I use fragment caching to exclude certain plugins from being cached?

I'm using the popular W3TC to optimize load times. The website that I run is dynamic and has login widgets as well as status indicators for game servers. The widgets are not hard-coded into the ...
1
vote
0answers
8 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'...
1
vote
0answers
156 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 ...
1
vote
0answers
196 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 ...
1
vote
0answers
81 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. ...
1
vote
0answers
262 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 ...
1
vote
0answers
3k views

Google PageSpeed Enable Compression isn't working?

I am trying to improve pagespeed of my website. When I test my site it tells "Compressing https://z-1-static.xx.fbcdn.net/rsrc.php/v2/yF/r/SQ7jeOqw5xW.js could save 188.3KiB (70% reduction)." I have ...
1
vote
0answers
783 views

Share media among different domains

I have multiple Wordpress instances that live on separate domains (not a multisite installation). Since they provide the same content in different languages I'd like to share the images among these ...
0
votes
0answers
14 views

Caching issue with logged out users

I have done a bunch of searches so I'll quickly answer some questions... No caching plugin activated Turned off varnish (liquidweb) Rebooted ngnix server Purged cloudflare and set development mode ...
0
votes
0answers
213 views

wp_is_mobile and caching problems

I have separate caches for mobile and desktop users and my implementation was working properly until my website began experiencing high traffic. Now, randomly my mobile users will see the desktop view ...
0
votes
0answers
27 views

What's the problem with caching database queries for logged in users?

While going throught the settings of W3 Total Cache's database section, I came across the following setting: [   ] Don't cache queries for logged in users Enabling this option is ...
0
votes
0answers
23 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 ...
0
votes
0answers
77 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 ...
0
votes
0answers
82 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?
0
votes
0answers
209 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 ...
0
votes
0answers
14 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.
0
votes
0answers
29 views

Page wrongly displayed when cache plugin activated

I tried both WP Rocket and WP Total cache, and when activating page caching, my pages look like this: http://www.goldnord.fr/ So all the pictures, animations, structure is gone. Is there a way to ...
0
votes
0answers
765 views

How to use nonces for frontend AJAX voting if the page gets cached?

I'm building a custom voting solution for my site that would allow public AJAX voting on multiple posts per page. Votes can be added/changed/revoked. Values are stored in custom post meta. I ...
0
votes
0answers
62 views

Ads below footer

A client of mine has ads on his website, which are managed by a CPT. The ads can be pulled in via a widget, hardcoded query and a shortcode. I have an issue that isn't consistent that I'm trying to ...
0
votes
0answers
1k views

Get post id of permalink for a specific custom post type?

I have custom post type called Personnel. I have this code to show a specific post ("details" page for personnel) (resides in children themes folder of Oxygen and is called single-personnel.php) <...
0
votes
0answers
152 views

Splash pages on a high traffic site

Could use some advice here. We have a fairly high traffic site web site using WordPress. Currently we have two VPS servers managing the site, one that holds WP, one that holds MySQL. The WP servers ...