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

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
11 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
21 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
25 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
15 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
13 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
561 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
30 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
751 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
1answer
425 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 ...
0
votes
1answer
41 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
23k 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
4answers
619 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
2answers
49 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
19 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
23 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.
0
votes
0answers
11 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
13 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 ...
0
votes
1answer
43 views

htaccess doesn't cache my latest news when logout

To speed up my website i'm using w3 total cache and some htaccess . . . it works just amazingly ! Otherwise, big problem, I have on my homepage the latest news being display, when I'm login, it ...
0
votes
0answers
16 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 ...
3
votes
1answer
115 views

Caching: Force fresh content for logged-in users (potentially by adding a query variable to the URL)

If a logged-out user visits a page, and then revisit it when logged-in, it will show the cached version. There's a closed question similar to this with an answer that suggests to set Cache Control to ...
0
votes
0answers
8 views

XSS Scripting in Cache files

On one of my client's sites I was going through a few of the pages ann noticed a popup appear with a spam advert on it. Finding this highly unusual I inspected the page source and found a bunch of ...
0
votes
1answer
42 views

How to make page/post password protected so you must reenter everytime you visit the page?

I added the following to the child-theme functions.php ///time out login so you must reenter it every time// add_action( 'wp', 'post_pw_sess_expire' ); function post_pw_sess_expire() { if ( ...
0
votes
1answer
24 views

String Replace Caching & Chance of Collisions

I am noticing that for various reasons I am using lots of string replacements in Wordpress and I am concerned about this impact on performance once it goes live. I am not advanced in caching but it ...
2
votes
2answers
630 views

Should I enable FastCGI on WordPress?

I am looking at my server settings and these are as follows: WebDav : active FastCGI : inactive SSL support : active Perl as Apache module : CGI-Programm PHP module : ...
0
votes
0answers
35 views

can infinite scroll work with caching plugins

I want to know whether plugins like infinite scroll (https://wordpress.org/plugins/infinite-scroll/) can work with caching plugins.Will the cache plugins will have same effectiveness.
1
vote
1answer
486 views

Caching-Plugins and Ajax-Page-Parts

I'd love to use »W3 Total Cache« for my Wordpress page. Caching the full page is really fasten up the site. But there is a lot of current community activity and most pages including some "latest ...
1
vote
1answer
29 views

Hook an action when a transient is deleted ? Can't get it to work!

I'm working on a plugin, and it caches a remote page when requested. The file is created with tempnam(). I save the path of that cached file in a transient, using the transient API. Once the ...
0
votes
1answer
58 views

HIgh CPU usage - Will using cache plugins help

i am having issues with CPU high utilization, more than 92% . Is there anyway to track which plugin or process or user is causing this issue? Will usage of any cache plugin will help this or not ?
0
votes
0answers
42 views

Having 4000 posts, my site is so slow

My WordPress sites contains 4000 posts, and the difficulty is that I have to display all of them at one page. You know, it takes ages to do that, sometimes it causes my Firefox crash. Could you guy ...
1
vote
2answers
211 views

Can I force get_option to go back to the DB instead of cache?

Is there any way to guarantee that when I call get_option I will definitely get the value from the database and not from cache?
0
votes
0answers
64 views

GravatarLocalCache Plugin Broken in WordPress 4.2

Trying to fix a plugin (https://wordpress.org/plugins/gravatarlocalcache/ not mine) which broke on the 4.2 update. The plugin makes a locally cached version of Gravatar.com avatars. Plugin hasn't ...
1
vote
0answers
67 views

Extending WP_User class and using this sub-class during the whole lifecycle

I am currently struggling with this software design issue I can't seem to get hold of. What I am trying to achieve is the following: for every user on our website, I want to do an API request to a ...
2
votes
2answers
996 views

Using Multisite with a CDN?

I'm running Wordpress Multisite hosted with Bluehost, and only have 5 low volume sites. My site load time has been awful recently, so I've used Lazy Load, DB optimization, Smush.it, and Quick Cache to ...
0
votes
0answers
62 views

w3 total cache : Force minified css to reload on client side when style.css is changed

Im trying to force the minified CSS file generated with the w3 total cache plugin to reload after editing the style.css file. Here's what i did : Empty all cache Add the file version after the ...
0
votes
0answers
30 views

Super cache caches mobile pages for desktop

Super Cache doesn't separately cache mobile pages and desktop pages. Sometimes I see a mobile cached pages on the desktop and the vice versa. How to solve this?
1
vote
2answers
1k 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 ...
2
votes
3answers
2k views

WP Super Cache separate cache for mobile

I'm using the WP Super Cache plugin and inside my theme I have code that executes differently if the site is viewed on a mobile device (iOS, Android) than a desktop browser. How do make WP Super ...
12
votes
3answers
32k views

Versioning @import of parent theme's style.css

Context I built a child theme based on Twenty Thirteen which works quite well. After updating the parent theme to version 1.3, I noticed strange behavior with the styling which was caused by a cached ...
1
vote
1answer
2k views

Failing to open advanced-cache.php which is breaking Media Library

On my WordPress install, which is 3.8 and has all plugins updated, it is using Magic Fields 2 and Hypercache amongst other plugins. I can't insert images into posts because when I upload, it gives me ...
0
votes
0answers
110 views

WP Optimization: Multiples call to wp_options table all the time, is this normal?

I've a problem on my site since it is running very very slow and I can't find the cause of this. So I'll need some kind of desperate help from people here. I'll improve the question any time I perform ...
0
votes
0answers
173 views

Flush RSS Cache

I'm editing my RSS feed by adding extra elements containing custom fields I've created. I'm aware these won't work on standard RSS readers, but I've building a custom page for a different website that ...
0
votes
1answer
232 views

Pagination in WP query with transient API

I have integrated WordPress transient system with w3 total cache. Now I can`t to do pagination for this query. <?php $paged1 = (get_query_var('paged1')) ? ...
7
votes
2answers
154 views

Caching and Versioning for rtl.css

I am using filemtime() to add a version number for different .css and .js files in a custom WordPress theme. I used the accepted answer described here as a guideline; however, I use the ...
5
votes
2answers
121 views

What exactly is an advanced object cache?

I'm reading this article about fragment caching. It seems self explanatory except for this line: based on the assumption that you have an advanced object cache available. What exactly is an ...
0
votes
0answers
134 views

is_user_logged_in() not working after domain change

I am relatively new to Wordpress and I recently moved a WordPress website from one domain to another. I went through and fixed all the links and references that I could find. Now my website has all of ...
0
votes
1answer
23 views

Website displays old version of page

So I'm working on a website for a company and everytime I edit a page/post I have to manually go in to the database and remove the old versions (which isn't something that I'd like to do since it's ...
0
votes
3answers
357 views

Update Custom post field by Ajax on cached site

My site cached by "wp-supper cache" plugin and "cloudflare.com" So my php function to count post views working incorrectly. I try to use ajax for it but I'm noob with JS code so I can not know where ...
1
vote
0answers
219 views

Run oembed separately outside the_content()

I have this structure for my content.php : <div class="featured"> <!--featured image here--> </div> <h1 class="entry-title">Post Title</h1> <div ...