Questions tagged [cache]

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.

Filter by
Sorted by
Tagged with
0
votes
0answers
20 views

Updating over 1000 posts per day (cache issue)

I'm updating every day over 1000 posts in my website and every time post is updated it pops up to the front page and the assigned categories/tags. Currently i'm using w3 total cache (free) version, ...
1
vote
0answers
756 views

How to totally disable cache in Wordpress?

I have a plugin that somehow seems to be caching even though I have disabled cache in Firefox per these instructions: https://support.mozilla.org/en-US/questions/1232148 I have also tried browsing ...
0
votes
1answer
37 views

Clear cache when comment is added

I am using wordpress total cache, and i need to clear cache every time a comment is added or modified <?php $w3_plugin_totalcache->flush_all(); ?> i found this method but , i don't know ...
0
votes
0answers
28 views

Wordpress logout appends cache/all/index.php to the site_url()

I have a wordpress website when i try to logout using custom menu logout link and redirect to home page it appends this cache/all/index.php to the site_url() like https://www.example.com/cache/all/...
1
vote
0answers
47 views

How can I use cached images in an AJAX response?

WP_AJAX includes no-cache headers with its responses. I'm using Ajax to fetch part of a shopping cart, which includes little image thumbnails. On each Ajax request, these are replaced and we can see ...
0
votes
2answers
203 views

W3TC manual cache flush does not work

My need is to have a .php file that is located in the root folders of all WordPress websites I manage, which can flush all cache of all sites. Therefore, I created a file "flush-cache.php" in the ...
1
vote
1answer
201 views

Disable feed cache for custom RSS feed?

I created my custom RSS feed using the following code: add_action( 'init', 'MyCustomRSS' ); function MyCustomRSS(){ add_feed( 'examplecomrss', 'MyCustomFeedCallback' ); } /* This code seeks the ...
2
votes
2answers
234 views

What is difference between 'Page Cache' and 'Object Cache' in WordPress?

I am optimizing my WordPress website. I am using 2 WordPress plugins right now. First one is 'Autoptimize' for optimizing CSS, JS, and HTML. And another one is 'WP Super Cache' for caching pages. ...
1
vote
1answer
829 views

Wordpress REST API, Expired Nonce from Cache results in 403 forbidden

My wordpress site sits behind Akamai, which is a cacheing service similar to Cloudflare. I make the following API call: GET /wp-json/mytheme/v1/get-posts?post_type=videos This is done using ...
1
vote
0answers
473 views

How do I enable dynamic content in a theme cached with WP Super Cache?

I've been trying to improve my caching strategies in the themes I build, but I'm having trouble understanding how "Enable dynamic caching" works in WP Super Cache. There's very little information on ...
2
votes
2answers
168 views

How can I free up the memory used by update_post_meta?

I've noticed that each call to update_post_meta results in a small increase in my memory usage. Normally, the increase is small enough to not matter. But I'm writing a CSV import function that calls ...
1
vote
1answer
22 views

Preferred way of cacheing a value in php

I have a couple of pages that make calls to an external API to retrieve a value. Obviously, doing this every time the page loads is horribly slow. What is the preferred way of cacheing this value for ...
0
votes
1answer
88 views

How to solve minify js and css first time load delay?

Scenario: - My site pages and most pages usually loads around 3s to 5s. - I have a lot of posts on my site and new posts are added every 12 hours. I did not use any on site caching plugin to avoid ...
0
votes
0answers
75 views

Refresh page after login with litespeed cache

I am using the litespeed cache plugin and ajax login plugin. The page does not refresh after users log in. it actually seems to be refreshing, but no. I can not. // $form.data("action") for get ...
0
votes
1answer
635 views

Enqueue script with version number not working

I am trying to enqueue a script for a custom plugin and I want to include a version number for cache busting. However, the ?ver= query is not being appended to the script name in the html and ...
2
votes
1answer
35 views

Why specific file directory fails to redirect but its parent folder succeeds?

I activated multisite using subdirectories on my old WordPress site, and I created a new site (say my-example.com/new-site/). I found links such as my-example.com/new-site/wp-content/mu-plugins/css/ ...
0
votes
0answers
25 views

Way to prevent snippet of template from being cached?

I have some PHP logic in a template that randomly loads some content. Logged in, this works great. Logged out, caching prevents different content from being loaded each refresh. Is there a good way ...
0
votes
1answer
1k views

Service Worker Uncaught (in promise) DOMException

My Service Worker Troubles with error, Uncaught (in promise) DOMException. My SW runs perfectly, and gives a prompt to install PWA when on mobile, but it gives this error. My url is Milyin. It will ...
0
votes
1answer
461 views

How to make login / logout links cache independent?

I used a snippet to create WooCommerce login / logout links via functions.php, present on literally every single Wordpress-related website and highly upvoted. As usual it doesn't really work. Once ...
-1
votes
1answer
21 views

CSS messes up when CACHE is cleared

I have a wordpress site: www.gravitywild.com The latests posts I've added don't show. I talked to support and they told me to erase the site cache and so I did. This is what the site looked like ...
0
votes
0answers
13 views

Non Admins Getting Cached Posts

I'm having a strange issue with wordpress posts getting cached. If an admin is logged in they do not receive a cached post however a regular visit is cached. I do not have any caching plugins and the ...
1
vote
0answers
11 views

How to cache a different page version based on HTTP header?

My website has an HTTP response header generated by Cloudflare that contain the visitor country code, and i can use that header in PHP to generate a dynamic content based on the visitor country, now i'...
1
vote
1answer
319 views

Write to / remove from default .htaccess file from plugin?

I'm working on a WordPress plugin, and I have a checkbox option to add cache control headers. I'd like to write to the htaccess file if the option is set to 1, else remove the new content. I've been ...
1
vote
1answer
153 views

Assign Json file to WP_Query

I am working with an unnecessarily complex theme with very limited time. Because of the number of records we have, load time is unbearably slow therefore we are looking to caching records using json ...
0
votes
1answer
82 views

How does WP's cache maintain persistence through page reloads?

I've thoroughly analyzed WP's cache, its functions and what it does and although simple in its design, it's effective: an object where you keep adding data that might be used somewhere else, so you ...
1
vote
2answers
949 views

Remove caching from wp_remote_get calls from custom plugin

I wrote a plugin to hit an API and display results on a page. When I was testing, every time I hit "preview", the plugin would hit the API and retrieve the most recent data. Now that the plugin is ...
0
votes
1answer
59 views

Should I store critical css in the database or in my theme's filesystem?

I have a method for detecting a post's critical css when the page is requested and in-lining it to optimize page speed. I would like to cache this css to avoid having to compile it for every page ...
0
votes
2answers
291 views

Use WP Cron to Clear a Page Cache?

I'm using a plugin (Comet Cache) to save static versions of a particular page I have on my site. Inside the plugin, I have the cache set to clear every 2 hours (that way this page can show the ...
0
votes
1answer
37 views

permalinks constantly needs re-saving

I have my WP running on an Nginx environment, with Wordfence, WP Rocket, and Search&Filter plugins installed (along with some others). Permalinks are working just fine, except /search permalink ...
0
votes
1answer
111 views

Cache the registration of a custom post type?

In computation, cache is used to store the state of something that is complex to generate. We then use the cached version for future requests. Taking a look inside the register_post_type function, I ...
0
votes
1answer
29 views

How to prevent archiving and search engine caching in a free Wordpress blog?

I don't like to have my free Wordpress blog cached by search engines or even worse, archived by the known archiving websites and services like The Wayback Machine. How can I do that?
0
votes
1answer
109 views

How to cache for multi server environment? Memcached, Redis or other?

Am researching ways to speed a a multiserver wordpress install. In the past there was plugins like batcache that used memcache to store objects. That plugin is outdated and wanted to know in 2018 what ...
0
votes
0answers
125 views

Why WordPress cache is not available after reload page?

I try to put data into WordPress cache and get it after reload page. I test my code and find out that data added to cache currently but after I reload page this cache is empty and wp_cache_get method ...
0
votes
0answers
27 views

Wordpress on mobile devices with new data after updating page

I work with a site where a weather report is displayed on the page. With each page refresh, some data changes. But no on mobile devices. Plugin for caching is disabled. There is a suspicion that this ...
0
votes
1answer
182 views

Is there a limit to size of data stored in update_option()?

I've checked out several* questions and WP docs and I have some idea of the answer but am looking for a specific number on the following questions: 1- Is there a limit to the size of data (kb,mb, ect)...
0
votes
4answers
2k views

Images not showing in media grid view (but showing in list view)

In my Wordpress install, thumbnail images are not showing in the media library, when in grid view. They are showing when in list view. In addition, if I once request a thumbnail directly, in the ...
0
votes
0answers
33 views

Is there any way to get all custom posts and all custom terms with it's meta in few queries?

I'm developing a website with a record for me query count. It has 720 Query for the main page. I want to reduce it. The main page structure is like this: ~10 Custom Taxonomy Term Each Term has a ...
0
votes
1answer
45 views

Wordpress Not updating - No Cache Plugins, Admin sees updates

I have no cache plugins active, I have put CloudFlare in development mode and also tried pausing it. None of these work. Somehow there is something cached on Wordpress side and it does not show the ...
0
votes
1answer
489 views

Unable leverage Browser Caching on AWS Bitnami stack (Apache) through W3TC and Cloudfront CDN

I followed many tutorial about leveraging browser caching nevertheless I couldn't configure it succesfully, in fact GTmetric (PageSpeed and YSlow) notified me many static file that don't have a cache ...
0
votes
2answers
136 views

Last-Modified header support doesn’t speed up server processing - want more

I’ve just added “Last-Modified” / “If-Modified-Since” header support for some pages on my site via the recommendation here, but I didn’t see a very noticeable client page load speed improvement. This ...
0
votes
1answer
86 views

Updated user role inncorrect when using wp_get_current_user()

I ran into an issue with updating a user role, and then checking the current role somewhere later in the code. After an entire day of debugging, and a night's rest, I figured it out by chance. See ...
0
votes
0answers
41 views

How can I refresh the plugins cache manually?

I'm installing a plugin by code via an AJAX call and afterwards, I'm using get_plugins to retrieve the new list of plugins. Problem is, my list is still the old one, where there's no plugins that are ...
0
votes
0answers
19 views

New blog posts don't update on page - How to force update of cookies more frequently?

An issue I am encountering is that even after I make a new post, any user who has visited my website recently isn't able to see my updated blog posts. They only see the old posts. It is only after ...
1
vote
1answer
1k views

Possible htaccess configuration issue for HTTPS websites by WP Fastest Cache plugin? [closed]

I am using WP Fastest Cache plugin for my HTTPS website. The plugin once activated adds several lines of code to the htaccess file. I doubt the presence of RewriteCond %{HTTPS} !=on in the below ...
0
votes
1answer
40 views

Having issues fixing site speed

G'day! My website > www.captiveoudoor.com generally takes about 50-60 seconds to load all resources, which is currently killing our traffic and google ranking. After running pagespeed insights I ...
0
votes
0answers
23 views

Is there a way to cache WordPress that does not loads core?

Cache is great, but still, testing my application with Blackfire, I saw that even the cached version consumes 43mb of memory, mostly because of WordPress Core load. Is there a way to cache a WordPress ...
1
vote
1answer
56 views

Investigating complex themes still slow even with WP caching

When using a complex WP theme alongside a WP caching plugin, there seems to be minimal performance improvement. Switch to a simple theme and your site performance improves dramatically. QUESTION: May ...
0
votes
0answers
80 views

How to do persistent data on Front End?

I´m doing a plugin with a member system. I need to : display notices ( error, warning, info ) for visitors when they fill the form to subscribe. To match with my core project, I need a system with a ...
0
votes
2answers
24 views

How to find out programmatically whether any cache plugin is installed in the WordPress website?

I want to know Whether any cache plugin is installed in the WordPress website or not. At present, I get all active WordPress plugin ( Using get_option('active_plugins')) and check one by one, whether ...
0
votes
1answer
104 views

content disappearing minutes after it's published

I'm with a very serious problem. Some information disappears after being published. Not exactly at the moment, but it shows up for a few minutes and then disappears. This does not happen with ...

1
2
3 4 5
12