The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
17 views

Enabling compression in .htaccess file is causing 500 internal error

This is the code I am adding to my .htaccess file for compression and browser caching and gzip. # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /wordpress/ RewriteRule ^...
-3
votes
0answers
18 views

W3 Total Cache mfunc is not working

My theme uses a functions to count post views so I am trying to set up this function using fragment caching so it does not get cached and gets updated every time but I cant do so. I have set it up in ...
1
vote
0answers
30 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 ...
8
votes
4answers
270 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
52 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
181 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
54 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
59 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
48 views

Test if fragment caching is working

I had this fragment caching function added in functions.php. It goes like this: function fragment_cache($key, $ttl, $function) { if ( is_user_logged_in() ) { call_user_func($...
0
votes
1answer
86 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 ...
0
votes
1answer
54 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
59 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 ...
0
votes
2answers
378 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 ...
-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
279 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
32 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 ...
1
vote
0answers
187 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 ...
1
vote
1answer
470 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 ...
2
votes
2answers
524 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
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
150 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
151 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 ...
5
votes
1answer
188 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.
1
vote
1answer
58 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 ...
1
vote
0answers
606 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 ...
-1
votes
1answer
492 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
1answer
318 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
123 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
0answers
557 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
3answers
484 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 (!$...
0
votes
1answer
738 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. ...
1
vote
0answers
239 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
78 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 ...
2
votes
1answer
627 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
87 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 ...
2
votes
1answer
78 views

Is priming a Transient Cache possible?

I'm currently using Wordpress Transient Caching when querying images I've uploaded and tagged. Using Transient Caching has really sped up these queries once they are cached, but unfortunately, once ...
1
vote
1answer
50 views

What is the best way to count and display the number of posts?

I have a section in my site where I display the 10 most popular posts. Now, I want to display a number, from 1 to 10, besides each post. Like this: Top 10 posts post a post b post c and so on... ...
3
votes
2answers
1k views

Best practices for using the transients API

I've recently come across the Transients API in Wordpress in hopes of improving the performance of the plugin that I'm trying to write. Basically the plugin is storing product details from the amazon ...
2
votes
1answer
995 views

APC object caching in combination Batcache/memcached page caching?

In the post WordPress Caching Comparisons Part 2 Matt Martz compares different caching setups, among them APC object caching together with Batcache page caching. In his post this combination seems to ...
3
votes
3answers
376 views

Extremely slow Wordpress website with 6000 posts

I have a website with 6000 posts and it is extremely slow. Sometimes I get this error in my browser: Service Temporarily Unavailable The server is temporarily unable to service your request due to ...
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
112 views

W3 Total Cache benefits without using plugin? [closed]

W3 Total Cache isn't compatible with WPTouch. Is there a way to get the benefits of W3 Total Cache without using the plugin?