The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
20 views

Server stressed by /feed

I'm debugging a website that my friend has hosted on a VPS that should be perfectly capable of handling a Wordpress installation that gets ~2m monthly visitors. During the last few months, his uptime ...
0
votes
1answer
714 views

can't see live version of style.css - is it web server caching?

My website is loading style.css?ver=1.0 style.css?ver=1.0 had different content to style.css, even after a hard refresh of style.css?ver=1.0 Deleting the browser cache didn't fix the problem. ...
7
votes
4answers
247 views

Is it possible to completely stop WP_Query retrieving posts?

I'm trying to use WP Redis to cache entire $wp_query object with key is $query_vars_hash. This is how $wp_query was added to $wp_object_cache: add_action('wp', function($wp) { if ( is_admin() ) ...
-2
votes
3answers
51 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 ...
1
vote
0answers
113 views

Is define('WP_CACHE', true) needed for object caching?

I am just reading the docs at https://codex.wordpress.org/Class_Reference/WP_Object_Cache and am not clear on something... If I install an object cache plugin by adding the drop-in file object-cache....
0
votes
0answers
47 views

Can't change javascript files

I've deleted a javascript file from my server, but it appears to still be there when making requests to the web server. I made a GET request with cUrl to the specific .js file to make sure there wasn'...
1
vote
2answers
53 views

Is using WP Transients to save external data for a plugin the best/right way?

I am developing a plugin which relies on external data to be fetched from time to time. To speed things up, I´d like to cache the received data and refresh it in intervals of 10 or 15 minutes. This ...
0
votes
0answers
41 views

Test if fragment caching is working

I had this fragment caching function added in the `function.php. it goes like this: function fragment_cache($key, $ttl, $function) { if ( is_user_logged_in() ) { ...
0
votes
1answer
79 views

wordpress images not showing properly

Images are not visible properly in the media library after caching them from my other website. The featured image is also not being set. However the images are showing up on the front end of the ...
2
votes
2answers
513 views

Transient not working for custom loops

I'm working at a WordPress theme. Since I need to display featured posts, related posts, some widgets with recent posts and so on, I need to use multiple custom loops. Because of this, the number of ...
0
votes
1answer
53 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
2answers
350 views

Enabling Cache on WP Membership Sites. Good OR Bad?

I develop wordpress membership sites and I never enable any caching plugin on those sites. I presume, if I enable caching then members might have some issues due to cache or there might be an issue ...
4
votes
1answer
2k views

Proper hook for W3TC defines, or dynamically disable w3 total cache [closed]

I have a site that uses a shopping cart plugin (Shopp), a plugin I wrote, and W3 Total Cache. In my plugin, I'd like to make sure that W3 Total Cache does not serve any cached pages if the user has ...
0
votes
1answer
51 views

Caching with dynamic content

My WP site is a little slow, but using WP Super Cache speeds it up. The problem is that many of the pages have dynamic content from the database that always needs to be uncached. Is there a ...
-1
votes
1answer
34 views

What will be the best caching system for wordpress blog which has more than one million blog posts? [closed]

I am trying to optimize a wordpress site which has more than one million blog post. I have used ngnix as many of them have recommended as it is one of the best server. I am trying to find what will ...
0
votes
0answers
42 views

Caching plugins and contant reloading of page

I have a site at www.clampdesign.com/dev/cwa with which I am having an odd problem. On my iPhone only (although others said they see this problem on desktop and iPads etc) the home page can't load. ...
1
vote
0answers
2k 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 ...
3
votes
1answer
267 views

Caching: Force fresh content for logged-in users (potentially by adding a query variable to the URL)

If a logged-out user visits a page, and then revisit it when logged-in, it will show the cached version. There's a closed question similar to this with an answer that suggests to set Cache Control to ...
0
votes
1answer
31 views

String Replace Caching & Chance of Collisions

I am noticing that for various reasons I am using lots of string replacements in Wordpress and I am concerned about this impact on performance once it goes live. I am not advanced in caching but it ...
0
votes
2answers
242 views

customize wordpress database error page

UPDATE Initially I suspected this was related to the Wordpress framework I'm using (Genesis) or to my child theme functionality, but turns out that's not the case as I was able to get this to work in ...
1
vote
0answers
184 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 ...
7
votes
2answers
206 views

Caching and Versioning for rtl.css

I am using filemtime() to add a version number for different .css and .js files in a custom WordPress theme. I used the accepted answer described here as a guideline; however, I use the ...
7
votes
2answers
1k views

Cache remote (HTTP) request with Transients API

I am trying to use get_transient() method in my Wordpress, I have read the document and seems like I am doing what has been described in the docs. I need to show weather in my website and I am using ...
1
vote
2answers
1k views

Cloudflare's Rocket Loader + Wordpress -> Ignore scripts?

I'm trying to make Cloudflare's Rocket Loader work on my WP site. Everything works fine except for the WP Visual Editor. I followed the advice here but it doesn't work: How do I add custom attributes ...
0
votes
2answers
441 views

Wordpress cache a menu with Transient API

I want to plain to cache a page menu, that takes about 50 queries on page load. At the moment I have cache setting code with Transient API $housemenu = get_transient('housemenu_key'); if (!$...
1
vote
1answer
433 views

Cache Get_posts

I have a query (see below) that gives a list of 10 news items ordered by the meta value "event_date" and filtered so that only posts earlier than today are displayed. This query is taking two seconds ...
-1
votes
1answer
21 views

Caching & Outputting RSS Data

I need to pull in 2 different RSS feeds from an external site into our site. I have two questions about how to best do this: I want to cache the feed so that it doesn't get pulled in every time ...
1
vote
0answers
593 views

Wordpress PHP 5.5 and OPcache

I have tried to run on my Apache 2.4 and PHP 5.5 OPcache. My admins turned it on for me but the site was not faster - it was slower. Is there a how-to somewhere or a code snipet needed in WordPress ...
0
votes
1answer
51 views

Take control of WordPress before functions.php

I'm developing theme and I want to make page cache of static pages in my WordPress theme (and basically I know how to implement it) The problem is that when making theme - the first time when I "get ...
0
votes
1answer
146 views

Changes to WordPress database using phpMyAdmin not reflected on blog

I am updating my database using the phpMyAdmin UI and the changes are not reflected on the WordPress blog. The reason for doing this is when some changes were made recently to the blog the site hanged ...
0
votes
1answer
150 views

Make a page (url) not cacheable [closed]

How to setup a wordpress-page in wordpress as non-cacheable in wordpress? I have made up a form manually for a page(wordpress) and I want to make that page not cacheable by browsers. How can it be ...
1
vote
1answer
57 views

How to archive a wordpress site (make it read only)

Is it possible to make a WordPress deployment read-only? For a website that won't be updated, I'd like to make it read-only/static, so the archive is there but nobody can post, so I don't have to deal ...
5
votes
1answer
187 views

Storing posts social counters by using transient api

I would like to know if it's a good practice to use transient api to cache social counters for every post. Loading post pages get quite slow while processing and getting all social APIs.
3
votes
1answer
3k views

Exclude certain block from caching using Fragment Caching - doesn't work [closed]

I have a one form, and I'm inserting it on page footer from a function file. I need to display a random form to each visitors and thus have a function developed to support this. However, with caching ...
-1
votes
1answer
478 views

How to cache wp_query with pagination using transients?

I have seen examples where there is a fix number of posts to be queried; however, I cant find an example when using pagination. I am trying to figure out how to use transients to cache a WP_Query ...
0
votes
4answers
12k views

WooCommerce & Caching [closed]

I have a div that displays the total amount of products the customer has in their cart, however this isn't updating as I have caching on (W3 Total Cache). Is there a workaround for this? Cheers, ...
0
votes
1answer
312 views

Wordpress caching issue

I've updated a page in wordpress and can see the correct result in "preview mode", but if I view the page outside of the admin interface the update does not show. I've search around and tried the ...
1
vote
0answers
49 views

wp_options flooded with transient API entires

I make heavy use of the WordPress Transient API. Suddenly a few days ago my wp_options table began being flooded with transient entries (2GB worth on average). Normally WordPress only writes them to ...
1
vote
1answer
122 views

How to enable Zend Optimiser+ with Batcache

I am using Batcache with APC Object Cache Backend so far. A lot of posts on internet claiming that using Zend Optimizer instead of APC would reduce CPU and memory usage. I could enable Zend ...
0
votes
1answer
2k views

How to handle is_user_logged_in() with w3 total cache [closed]

I have a site that allows user registration and login but not via the standard wp-login.php etc - it's all done within the theme and a bit of s2member as well. I've been encountering problems where, ...
1
vote
1answer
424 views

WP Super Cache Bug with Ubermenu

Im having a serious issue with WP Super cache and UberMenu. For some reason, every now and again, I will view my site, and it will have the default styling applied to ubermenu and then this unstyled ...
1
vote
0answers
549 views

How to handle cookies from a WordPress plugin on a cached page?

I'm attempting to write a plugin that can work with cookies on a WordPress site that uses page caching (why?). I've been following this tutorial on Esanctuary.net. I'm trying to write to the ...
0
votes
2answers
2k views
1
vote
0answers
236 views

.htaccess browser caching and user login [closed]

I have a site that involves user logins for certain content. I am leveraging browser caching in the .htaccess file. When a user logs in, they are redirected to a profile page. The problem I'm having ...
0
votes
1answer
77 views

Apache extensions for WordPress' working without troubles

I have a new web server at the Hetzner EX60. With this new site I have many problems. First of all I need to say that I have problems with default theme and without any plugins. I tried to resolve ...
1
vote
2answers
95 views

Transient API and caching Plugins

Hello wordpress NINJAS.... I am crazy about transient api and I have implemented it in my theme.My question is If I use transient api is it required caching plugin? (I hate plugins!!!) If I use ...
-1
votes
3answers
5k views

nginx + wordpress: Best practices for configuring it to be secure, reliable, and fast? [closed]

BACKGROUND: Running everything up on Linode. Having followed the "Getting Started," "Securing Your Server," "LEMP Server on Ubuntu 12.04," and the "Manage Web Content with WordPress" guides I was ...
2
votes
1answer
611 views

Transient caching for wp query

I read about transient in the codex and some questions and answers here. So i'm developing a web app based on wp. It works now, but i want to optimize it. Users manage content regulary, so crud ...
1
vote
2answers
1k views

How to optimize multiple WP_Query() calls on one page?

The current site I'm building has a homepage that is going to have around 10 instances of WP_Query(). Some of them are going to pull a series of posts, while others are targeted at one single post ...
1
vote
1answer
83 views

How to implement filesystem cache in Wordpress

I'm currently using the Transients API to cache some product details from Amazon. Now I'm looking into adding a file system cache. But I have no idea how to implement it. The only thing that I can ...