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

Is it best to use a plugin to minify my js and css? [on hold]

I recently test a wordpress website on Google page insights and I'm not getting the results I would like. Can someone please explain the best way to speed up my page or fix this problem? Thank you!
2
votes
0answers
17 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 ...
1
vote
2answers
563 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
vote
1answer
872 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
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 ...
2
votes
1answer
532 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
0answers
10 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( '...
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
31k 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
48 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
36 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
14 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
27 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
27 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
448 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
46 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
12 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
50 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
17 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
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
0answers
19 views

Add Hook for clearing transient when post is added

I have this 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, $...
3
votes
1answer
35 views

Difference between fragment caching and wp_cache

I've been really confused about this two caching. What's the main difference of fragment caching vs wp_cache? Can both of them be used hand in hand? EDIT i've read about the fragment caching found ...
0
votes
0answers
26 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
46 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
17 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
76 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 ...
0
votes
0answers
99 views

Redis + WooCommerce = Failed?

I have Apache + Redis + Wordpress (WooCommerce) Setup. Like: ( AWS ELB ) + ( 2 x Apache ) + ( Redis ) .. are all on separated Nodes. On Both Apache I have: Wordpress + WooCommerce Tried both: ...
14
votes
3answers
283 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
278 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
26 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
60 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
181 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
277 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
128 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
42 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
32 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
59 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
131 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
49 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
147 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
112 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 ...
0
votes
0answers
67 views

Object Cache - Avoid db queries totally

I am using object cache and have cached just about all queries but am stuck with the last 3, on a post archive page. They are all wp core queries. SELECT SQL_CALC_FOUND_ROWS wpm_posts.ID FROM ...
0
votes
1answer
229 views

Wordpress theme Modifications not showing up on live server

I have been working on localhost with a theme that was already installed on live server. After i completed my mods, uploaded the files to themes folder in wp-content but to my disappointment, the same ...
2
votes
1answer
57 views

wp_cache_set() or wp_cach_add()

That's the question! There's not much explanation on wp_cache_set() an even less for wp_cache_add(). What should I use in which circumstances?
0
votes
1answer
129 views

How to clear cache without a plugin [closed]

How can I clear all my websites cache without using a plugin? Is this possible? If so then how can I do it? Thanks
0
votes
0answers
34 views

Should I Save widget HTML to a file cache?

I have w3 total cache installed, but i have a custom plugin that i use to pull information from a large database. I use this to generate sidebar information. For example, i have custom fields for ...
0
votes
2answers
282 views

Website keeps going down, is it a plugin, database, memory problem, or something else?

So I've been having a problem with one of the websites I manage. Essentially, we keep seeing the cloudflare 'site is offline' message for at least half the day, constantly and consistently. Whenever ...