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
14 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 ...
-1
votes
0answers
10 views

How does Cache Timeout in WP Super Cache work? [closed]

I've set "Cache Timeout" in WP Super Cache plugin to 60 seconds. Also set "Garbage Collection" to 90 seconds. I was expecting cached pages to be cleared at least each 90 seconds, but the cached pages ...
0
votes
1answer
12 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
4answers
1k 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
16 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 ...
2
votes
1answer
414 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
35 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: ...
12
votes
3answers
195 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
129 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 ...
1
vote
2answers
497 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
828 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
0answers
17 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
42 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
50 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
51 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
74 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
27 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
28 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
30 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
55 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
25 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
58 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
51 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
50 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
215 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
41 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
95 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
30 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
108 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
103 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 ...
4
votes
1answer
1k views

Proper hook for W3TC defines, or dynamically disable w3 total cache [closed]

I have a site that uses a shopping cart plugin (Shopp), a plugin I wrote, and W3 Total Cache. In my plugin, I'd like to make sure that W3 Total Cache does not serve any cached pages if the user has ...
1
vote
3answers
2k views

w3 Total Cache not Caching - Requested URI is rejected [closed]

For some reason Total Cache does seem to be caching my pages. Each time I got to a page, when I view source, the Total Cache comment shows that it regenerated the page for this request. What worse, ...
1
vote
1answer
120 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
130 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
40 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 ...
1
vote
1answer
2k views

How can I add Expire headers to images?

I'm trying to speed up my site a bit. How can I add Expire headers to images I upload? Must this be done with Apache configuration, or is there a setting or plugin to do the job?
0
votes
0answers
32 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 ...
0
votes
1answer
41 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
93 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
30 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
17 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 ...
4
votes
6answers
621 views

Does a low traffic WordPress site need a caching plugin and a CDN

I notice that many WordPress tips websites recommend using caching plugins. I tried it on one site that gets a relatively small amount of traffic, and hardly notice a difference in load time. Is it ...
0
votes
0answers
36 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
103 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 ...
18
votes
7answers
28k 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
129 views

can not login after moving to cloudflare and adding rules

I've move my website using cloudflare - which is amazing in term of speed - ouaw ! in the settings of cloudflare, I have add some rules to make it faster, however since - I cant not login in the ...
0
votes
0answers
47 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 ...
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
48 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.