A cache is a component that transparently stores data so that future requests for that data can be served faster. The data that is stored within a cache might be values that have been computed earlier or duplicates of original values that are stored elsewhere.

learn more… | top users | synonyms

0
votes
1answer
15 views

Popular posts with Varnish ESI

I am trying to get Varnish ESI to work with displaying the most viewed posts on a new blog I am working on. Here is my current script; In theme file: <esi:remove> <?php get_template_part( '...
-4
votes
0answers
18 views

Is there any plugin to serve cached content to the public during maintenance?

I know there's W3 Total Cache and WP Maintenance Mode, but I don't want to show a "The website is under maintenance" warning. I want something like this: Click a button "start maintenance". This ...
1
vote
1answer
10 views

cache specific data?

I want to display some information from database in each post, for example date of registration of user and user role etc. It is quite static data that doesn't change. Now if I make a query to the ...
1
vote
2answers
573 views

How to optimize 'select found_rows()' query? Several 'high load average' alerts daily

I have 5,000 regular posts, 6,000 posts in one post type and 2,000 posts in another post type. Needless to say, that has made the wp_posts table quite large. Not to mention, I have custom taxonomies ...
-1
votes
0answers
21 views

functions.php page not being refreshed for certain pages

I have made changes to my functions.php page the child version. My changes are being rendered in some pages but not all. I have tried this on a fresh browser cleared cache etc but still some pages are ...
1
vote
1answer
876 views

Some custom taxonomy child terms not showing in admin. Caching problem?

I have a problem with some custom taxonomy terms. I am using "Types" plugin for creating custom post types and custom taxonomies. I successfully created my postype and hierarchical taxonomy and ...
0
votes
1answer
28 views

Add Hook for clearing transient when post is added

I have fragment caching implemented in a page. I've got the codes from https://css-tricks.com/wordpress-fragment-caching-revisited/. Which goes like this: function fragment_cache($key, $ttl, $...
4
votes
1answer
1k views

AJAX vs Fragment Caching for W3 Total Cache [closed]

I'm running a WP site with WooCommerce and I want to do some caching. I'm going to exclude the pages such as the cart/checkout for obvious reasons however there are a couple of the things on the site ...
-1
votes
0answers
19 views

How to find why I can't do some stuff at my site

I have a lot of plugins and I need them because it is a complex site. But now I have a problem with some of the plugins. When I got to the support of the plugins (the ones I bought), they told me it ...
4
votes
1answer
420 views

Fragment caching increasing database queries

While implementing fragment caching on a wordpress site by using the technique described here: http://css-tricks.com/wordpress-fragment-caching-revisited/ I found that it seems to actually increase ...
3
votes
1answer
38 views

Difference between fragment caching and wp_cache

I've been really confused about these two caching modes. What's the main difference between fragment caching and wp_cache? Can both of them be used hand in hand? EDIT I've read about the fragment ...
0
votes
0answers
46 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($...
3
votes
3answers
443 views

Stylesheet switching and caching

I'm implementing a site that allows users to switch stylesheets (to show a high contrast version for people with vision impairments). The switcher essentially just changes the <link>ref to ...
1
vote
2answers
41 views

Clearing caches on plugin uninstall

When a plugin is uninstalled, it should remove all related data from the site (or network, if on multisite). If a plugin adds tables to the database, for example, it should remove those tables from ...
2
votes
1answer
546 views

tinyMCE.activeEditor = null WP editor loaded in 'Text' mode?

I have a plugin which saves data via AJAX, and realised that it wasn't sending out any request. I opened up the console to look further, and low and behold when trying to look at the object tinyMCE....
0
votes
5answers
2k views

After moving a site to another domain, all images are lost

I moved from www.domain1.com to www.domain2.com Trouble is the image paths left looking at www.domain1.com/wp-content/uploads... So when www.domain1.com went down all my images are now lost. I ...
2
votes
0answers
24 views

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

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 ...
0
votes
1answer
16 views

How to keep cache files after plugin update?

I've got a premium plugin and setting up a custom solution to serve updates. However I've got a question regarding how contents are managed. Wordpress just remove old plugin folder and install the ...
0
votes
1answer
11 views

Cloud flare, cache, minify question [closed]

If I am using Cloud Flare to serve my site, and use their Cache and minify options, is there sense in caching and minifying at the Wordpress level as well? Is this a waste of time or do I get a ...
20
votes
7answers
32k views

How do you avoid caching during development?

Is there a simple way do prevent all caching when testing the appearance of changes to the site? I use WP Super Cache. I can delete its cache using the option provided, delete the cache for my ...
0
votes
2answers
20 views

Local PC cache stays filled with old WordPress Site data

I am developing a new WP site. My client complains that he see old site data like links that refer to old category names. On my PC and other I have no problems with this. On server side there is no ...
2
votes
1answer
54 views

Usage of Direct Database Call Without Caching Error

I have a custom function that creates a dynamic copyright year range based on the year of the first and last posts in the database: function jldc_copyright_dates() { global $wpdb; $...
0
votes
1answer
43 views

How can I cache font files on Wordpress

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 ...
0
votes
0answers
16 views

Recently moved Wordpress site sometimes loads old legacy site. DNS is correct

I had a wordpress site that was used for a year at one location.Recently we decided to move all our web properties under one account so we purchased new hosting and transferred the URL. The site was ...
0
votes
1answer
29 views

opcache_reset on plug-in/theme/core update

wordpress it seem not reset opcache after plug-in/theme/core update. For solve this issue i have set in the php.ini opcache.validate_timestamps=1 all work correctly but validate_timestamps when it'...
0
votes
1answer
31 views

Transients are not expiring as expected in simple custom plugin

I have developed a simple shortcode plugin that essentially gets txt files from the url provided in the shortcode and parses a specific piece of data from them (date the file was last modified). I am ...
5
votes
1answer
529 views

Nginx FastCGI_Cache Vs PHP Caching

I have been doing some experimenting with caching performance using loader.io and have been left with some puzzling results. I was originally on a shared host that used a LAMP stack. Even with ...
0
votes
2answers
52 views

get_theme_mod returning cached values regardless of apache restart

get_theme_mod is returning cached content: this code: $parallax_one_logos = get_theme_mod('parallax_one_logos_content', json_encode( array( array("image_url" => ...
0
votes
0answers
14 views

W3TC object cache item set in PHP command-line is missing when attempted to retrieve it from cache in web browser

I have an expensive DB query. I use a system cronjob to run a PHP script to load Wordpress core and run the query, and store the results in the cache using wp_cache_add() using a cache key and cache ...
0
votes
2answers
56 views

Files cached as CSS or PHP?

I'm using a dynamic CSS file with PHP extention. wp_enqueue_style('css', get_template_directory_uri().'/inc/css.php'); The output: <link rel='stylesheet' id='dynamic-css' href='PATH/inc/css....
0
votes
0answers
21 views

Error 500 in single post page after deactivating Wp Cache Plugin

Everything was fine in my blog, until I deactivated the Wp Cache plugin and it suddenly stopped loading every single post pages. It simply appears Error 500 and do not load anything at all, as you can ...
0
votes
0answers
27 views

Integrating with external cache solution? Causing problems with ajax nonce validation

We are using an external caching solution (Akamai), and it is causing problems with plugins that use ajax nonce validation, such as Mailchimp for Wordpress. I saw the WP_CACHE define, but it sounds ...
0
votes
1answer
58 views

Improving wpdb queries with large data

My plugin will handle large amounts of data that could could result in the queries reading over 5000 items in a database query. The admin will provide a set of CSV files that get stored/organized in ...
0
votes
1answer
21 views

How to let users clear their posts cache with WP Super Cache?

Right now with WP Super Cache, when an admin updates a post, the cache is cleared and new cached version is generated. How do I let users do the same with own posts? (When they update their posts the ...
0
votes
0answers
86 views

FULL page caching with nginx and using the WP API nonce issues

I want to cache 100% of the response from WordPress via nginx and I've made a lot of strides towards that but one issue I'm having is the nonce required to make API calls against the WP Rest API. I ...
14
votes
3answers
307 views

Should I use Transient API to store HTML String, or Object?

Let's assume that there is a plugin that displays 20 related posts (for each post) with a very complex query. And then using data from this query, it builds complex HTML layout. Also, should be noted ...
9
votes
2answers
293 views

Explanation of update_post_(meta/term)_cache

I was reading over some best practices from 10up and they mention setting these two flags to false in a WP_Query ( depending on what you're querying ): 'update_post_meta_cache' => false: useful ...
0
votes
0answers
27 views

How to add a query string to all images?

My ISP has a cache server that cache all images and cause some problems and get on my nerves. So I decide to add some query string at tail of all image URL to prevent ISP to cache. Now I use this code ...
0
votes
0answers
62 views

Website not showing the updated content while visiting through facebook/twitter in-app browser

Website (http://www.gsacademicreflections.com/) not showing the updated content while visiting through facebook/twitter in-app browser. The website developed in WordPress and consists of pages/posts/...
1
vote
1answer
211 views

How to cache bust a child theme style.css

There may be several aspects to my question but I feel in essence it's easy: how do you make sure changes to a child theme style.css are properly propagated across caches? I read in a few places that ...
1
vote
2answers
327 views

Live website is not showing the changes I've made [closed]

I used to have my website hosted through Godaddy and 4 months ago something weird started happening. Every time that I would make changes to my site, it wouldn't show up on the live website. The only ...
0
votes
1answer
136 views

W3 total - leverage browser caching not working with cdn delivered images

I'm using W3 total cache for a while now with all my Wordpress installations. Just started to use CDN and I got some problems with leverage browser caching of my files (mostly images) that are served ...
0
votes
2answers
43 views

How to identify which javascript is being executed

I am trying to figure out which script is being called and executed within my Wordpress website. I have website with a number of scripts that are included by the core, the theme and the numerous ...
0
votes
1answer
33 views

Are WordPress widgets cached?

I'm not sure if it is true but seems that the content of the widgets is cached. I initially thought there was a problem with my code (I need to hide/show a section in a custom widget according to a ...
2
votes
2answers
2k views

Set Session Time Limit for Password Protected Posts

I have made a series of posts and pages password protected on my website using the built-in Visibility setting. They all use the same password, so the user can view all of them after entering the ...
0
votes
1answer
67 views

CSS updates appear after delay [closed]

I am using an FTP client to download/edit/upload CSS files of my child theme. Typically that worked smoothly and updates were seen after refreshing the page in the browser immediately. However, on ...
0
votes
1answer
146 views

Completely reload style.css

I have inherited a site, and I'm trying to add new styles to the style.css Things I have tried that have NOT worked Reload browser cache delete WP Super Cache cache Disabled WP Super Cache plugin ...
0
votes
1answer
52 views

How to save comment name email url fields?

First of all I must admit that I'm not entirely sure about whether or not this question is allowed here (as this is not code debugging question), but still asking in hope some wp users can show me ...
0
votes
0answers
164 views

Prevent caching when using wp_enqueue_script?

I am using this to include a custom js file, but i notice if i update the custom-js.js file it doesn't automaticly is the one used? So how do i prevent this js file to be cached? function ...
0
votes
1answer
118 views

How to clear user's browser cache after publishing a new post?

I'm not using any cache plugins on my wordpress and I'm not using any caching system on my server but for some reasons , " Google Chrome " and " Firefox " keep caching my website and whenever I make a ...