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
4answers
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 ...
0
votes
0answers
7 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( ...
-1
votes
1answer
37 views

Building own plugin cache when using external API

I've built a plugin using a third party API in order to receive data which will be shown on the frontend. Until now I've stored the data by using transients. When someone visits a single post/page ...
0
votes
1answer
10 views

Cloud flare, cache, minify question

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

Site still slow despite many efforts

Dear Stackoverflow community. My website is really slow and I don't understand why. See for yourselves : http://blog.defi-ecologique.com I have used every technique I know. I dequeued all scripts ...
19
votes
7answers
30k 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
19 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
34 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
25 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 ...
1
vote
1answer
865 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 ...
1
vote
2answers
545 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 ...
2
votes
1answer
498 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 ...
0
votes
0answers
12 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
22 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 ...
0
votes
1answer
24 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
335 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
37 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
43 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' ...
0
votes
0answers
14 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
31 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
18 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
34 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
23 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
41 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
16 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
50 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
82 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: ...
13
votes
3answers
265 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
230 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
25 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
54 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 ...
0
votes
1answer
133 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
198 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
115 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
40 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
30 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
50 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
111 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
41 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
129 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
97 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
61 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
226 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
52 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
118 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
230 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 ...
0
votes
1answer
209 views

Cache plugins and ajax nonce verification

I created a plugin which use some ajax requests to load more posts on click. I noticed that when I use a cache plugin like W3 Total cache plugin then the wp_verify_nonce($nonce, $action) fail ...