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
9 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
22 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
13 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 ...
-1
votes
0answers
10 views

post views functions not working correctly with plugin cache

Im using Wp-rocket wordpress plugin Cache and functions for calcul post views But after installing the Wp-rocket cache the wp functions views not working correctly. how i can use AJAX to call my ...
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
25 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
23 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 ...
3
votes
1answer
92 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
1answer
19 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 ...
0
votes
0answers
21 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
20 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
33 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
40 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 ...
0
votes
0answers
47 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
46 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 ...
0
votes
0answers
33 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
18 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?
0
votes
0answers
75 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
114 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 ...
7
votes
2answers
133 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
113 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
106 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
17 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 ...
1
vote
0answers
176 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 ...
0
votes
3answers
80 views

Fixed version number for cached stylesheets and javascript

Unless i use: wp_enqueue_style( 'dazzling-style', get_template_directory_uri() . '/css/main.css?ver=', array(), rand(10,99999), 'all' ); Then everytime I visit my site, be it local or live, I see ...
0
votes
0answers
33 views

Turn off Plugin Manually

I have installed and active wp-super-cache plugin, and It cached an PHP syntax error. I solved the error but can't run my website again because the error.log is still displaying the same error. I ...
0
votes
0answers
68 views

How could I exclude login modal from cache?

since I activated the W3 total cache I got a login problem, people write their credentials on login modal but after they press the sign in button, the page refresh but the user's name is not ...
0
votes
0answers
150 views

How to do Leverage browser caching for a specific file in wordpress?

I am trying to get my site passed in google speed test. My current speed is 74/100 For java script Leverage browser caching I've added this ExpiresByType text/x-javascript "access 1 month"1 to my ...
1
vote
1answer
4k views

APC vs APCu vs OPcache

I m a bit confused and i need ur personal opinion please what should i use ? APC , APCu or OPcache I m usinge : WHM VPS Apache 2.4 / PHP 5.5 / Fastcgi / Wordpress / Processeur 6 vCores / RAM 8 Gio ...
0
votes
1answer
50 views

User email not being changed (cached?) until next page load (frontend)

I'm working on my own account management from the frontend. So far everything is working pretty good. I do have 1 issue that I just can't seem to fix. When a user updates their account information, ...
0
votes
2answers
1k views

Prevent Wordpress from sending Cache-control http header

My site sits on a server that uses Varnish as a (powerful) caching engine. Unfortunately, it seems wordpress is busting the Varnish cache by sending a cache-control http header. If I curl -I ...
0
votes
1answer
1k views

W3 Total Cache: Load CSS asynchronously for better PageSpeed score? [closed]

I'm using W3 Total Cache to minify about 15 CSS files, and also to minify 20 JS files and load those asynchronously in the footer. Running my site through PageSpeed gives me the following message: ...
0
votes
0answers
136 views

W3 Total Cache problem with password protected pages

well w3 total cache plugins is really nice and make my speed of loading more fast but seems Total cache have problem with password protected pages and posts . when the password enter and page load ...
0
votes
1answer
75 views

pass-protected pages and posts not protected after enter them 1 time

i use wordpress 3.9.2 and i read a lot of article and Q about clear cookies but some of them is too old ( for wp 3.4 and wp-pass with different code) or not solve my problem i have some password ...
0
votes
0answers
94 views

Custom php Widget keeps disappearing from the front end

I've created a widget to show custom testimonials on the sidebar. It checks if the post has a custom field 'customer_review' then prints a it on the sidebar. Thing is, the testimonial keeps ...
8
votes
3answers
27k 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
80 views

How to prevent/delay MySQL connections when an object cache is used?

We are using an object cache backed by memcached, however I think that WordPress will still connect to MySQL on every page load, which shouldn't be needed if all queries can be handled by the object ...
-1
votes
1answer
20 views

Caching & Outputting RSS Data

I need to pull in 2 different RSS feeds from an external site into our site. I have two questions about how to best do this: I want to cache the feed so that it doesn't get pulled in every time ...
0
votes
1answer
74 views

Manually cache a special, non-WP-but-using-WP page (e.g. Ajax results) with W3TC

Under the active theme folder, I have a search-autocomplete.php file which uses various WP queries to create smart JSON results delivered via AJAX to a jQuery UI Autocomplete input field. It's not a ...
1
vote
0answers
239 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
3answers
354 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
75 views

Can a Wordpress blog be entirely hosted on a CDN if cached?

I am developing a Wordpress blog for a client who believes that more than 1m pageviews will be served every month. Unfortunately his server resources are very limited so I was thinking of hosting the ...
5
votes
1answer
922 views

Nginx + WordPress + HHVM: Why isn't Batcache working? Would Varnish help even more?

I've heard great things about HHVM, so I've setup a copy of WordPress blog (on another domain) with Nginx (with the Pagespeed module) and HHVM. Right now the benefits are obvious: on the same config, ...
0
votes
0answers
120 views

Preventing Cache for Text Content but not for CSS files and Images

I am front-end developer and my knowledge is limited for server-side. Excuse me if I am mistaken on terminology. I have Wordpress blog that I write blog posts about javascript. I update the same post ...
0
votes
1answer
44 views

Take control of WordPress before functions.php

I'm developing theme and I want to make page cache of static pages in my WordPress theme (and basically I know how to implement it) The problem is that when making theme - the first time when I "get ...
0
votes
3answers
880 views

After Migration, Warning: include_once() errors on all pages

We migrated our site to a new host and changed the domain name, and now all pages are displaying errors: Warning: include_once(includes/class-wc-download-handler.php) [function.include-once]: ...
0
votes
1answer
50 views

Server Variables not recognized in certain posts

I've got a very strange issue that I've never seen in WordPress. I've just converted a big site over to a new responsive theme. The site has about 1,400 articles and there are ads on it. The way we ...
3
votes
1answer
580 views

How can I reduce the number of database query calls for this custom homepage?

I am working on the design of a blog with the below(just a sample) category hierarchy. PARENT | ...
0
votes
1answer
96 views

Make a page (url) not cacheable [closed]

How to setup a wordpress-page in wordpress as non-cacheable in wordpress? I have made up a form manually for a page(wordpress) and I want to make that page not cacheable by browsers. How can it be ...
0
votes
1answer
75 views

WordPress aggressively caching CSS

I’m absolutely fed up at this stage. I just activated a new theme on my WordPress site. I activated it at about 7pm GMT and since then I’ve been trying to change the style. I’ve updated the CSS (I’m ...