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
0answers
11 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
19 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
17 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
288 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
31 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
0answers
11 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
2answers
39 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
28 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
17 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
31 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
34 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
15 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
40 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
79 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: ...
9
votes
2answers
203 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 ...
13
votes
3answers
246 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 ...
0
votes
0answers
22 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
1answer
101 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
135 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
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 ...
0
votes
1answer
104 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
1answer
46 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
34 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
115 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
87 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
52 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
96 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
2answers
38 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 ...
2
votes
1answer
48 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
115 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
31 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
197 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
179 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 ...
1
vote
1answer
163 views

get_post_meta causes database queries

I want to know why my site's search results are slow. I've used the excellent Debug Bar plugin, and found out that each search result causes 5 DB queries, of which 3 are SELECT meta_key (see below for ...
1
vote
1answer
218 views

How can I clear oEmbed caches for YouTube on posts as they are loaded

I have a site with tons of posts hundreds/thousands of which have YouTube videos embedded. Most use the default [embed]youtube_url[embed] format and the actual embed code is stored in the oEmbed ...
0
votes
0answers
50 views

How to view W3 Total Cache for testing?

I've attempted to cache JSON endpoints in WordPress by following this post: http://wordpress.stackexchange.com/a/115384 // Modify the output buffer callbacks of W3 Total Cache to work with the JSON ...
0
votes
0answers
35 views

can i disable cache plugin in shabbat?

I created a plugin called wp-shabbat, its checks the user ip location and calculate if it shabbat time, if so the plugin creates on the fly page that presents user time to come back and with 503 ...
1
vote
1answer
47 views

Check if a user is connected and get is ID without fully loading wordpress

I'm writing an advanced cache for WP. I try to make it works with connected users. I want to calculate a user context hash. To build my hash I need a way to quickly know if the user is logged and get ...
1
vote
1answer
149 views

How many queries are normal to execute on a WP site?

I use the following PHP code in my theme's footer. <?php echo get_num_queries(); ?> queries in <?php timer_stop(1); ?> seconds. Then I realized that about 140 to 210 queries are ...
1
vote
1answer
39 views

How do I fetch feed info from cache instead of directly from feed?

I have been using SimplePie to fetch items from a feed and display them on an aside section on my site. I didn't notice before, but this was increasing the load time of the site by over 10 seconds. ...
0
votes
1answer
18 views

Plugin files not updated (cache cleared)

I'm manually uploading a plugin that I created, but no changes take effect and the file editor shows no changes unless I change the filenames within the plugin. I've already tried doing this while ...
0
votes
0answers
37 views

WordPress Caching

I try something on my local machine. I have a custom JS and CSS file which I included in the functions.php of my theme (twenty fifteen) like this: function load_my_stuff() { wp_enqueue_script( ...
1
vote
1answer
147 views

How to make a local cache of mshots images

I am using the Wordpress mshots api to generate automatic thumbnails of websites from the site url. I am using a customfield to capture the website url and pass the value to the mshots url to return ...
0
votes
0answers
49 views

Php function modifying the page's rendering engine buffer and blocking caching plugin

I tried to create a plugin which creates pages based on a CSV or excel file containing hundreds of city names and postal codes. It creates one page per city, with always the same design but different ...
0
votes
0answers
64 views

How to decode wordpress transient cache stored in database?

Wordpress stores caches using Transient and saved in wp_options table. I can't read those stored values - a sample snapshot is as below. If you know how to decode/read/parse them, please share.
1
vote
0answers
15 views

Can we turn off Wordpress `transient` cache? [duplicate]

When studying Wordpress, I notice that a lot of database changes are on wp_options table - a closer monitor will show that a lot of transient related changes are made. I wonder if we can turn off ...
0
votes
0answers
14 views

W3TC recreating cached files, but not uploading them to our CDN. We didn't request the recreation

We're having a weird problem on our production server. We use w3tc to compress and upload CSS and JS to our amazon CDN. After clearing all caches on the site, it works fine initially, then sometime ...
0
votes
0answers
21 views

Page wrongly displayed when cache plugin activated

I tried both WP Rocket and WP Total cache, and when activating page caching, my pages look like this: http://www.goldnord.fr/ So all the pictures, animations, structure is gone. Is there a way to ...