Skip to main content

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
2 answers
34 views

How to make Wordpress ignore GET parameters when caching pages?

Situation: there is a WordPress site, a small article-based site. It loads not very quickly (500-600ms), but with caching, the values are much better (20-30ms). The problem arises when accessing a ...
LeTraceurSnork's user avatar
0 votes
1 answer
26 views

How can I get the number of items stored under a cache group

I am using WP_Object_Cache to store entries under a group. This is done during an api request and I would like to return the total number of cached entries to the user in the response. After looking ...
Cyclonecode's user avatar
  • 1,164
0 votes
0 answers
12 views

How to clear cache for get_terms()

I am calling get_terms() in a loop. I may modify the terms (add one) in an iteration of the loop. I need to be sure that the next iteration gets this added one. Specifically; I test for a child term ...
Kropotkin's user avatar
  • 169
0 votes
1 answer
23 views

Do Seeded Orderby Rand Queries Benefit from DB Caching?

I'm aware that various object caching plugins give you the benefit of caching results from frequent database queries. So that repeated queries return a cached result set rather than running the query ...
RodneyUK's user avatar
0 votes
0 answers
18 views

Sudden ERR_HTTP2_PROTOCOL_ERROR on every JS and CSS files loads

I recently went on my website which is online since more than 5 years now and realized that none of the CSS and JS files were loading. By looking into the console, I’ve seen that every load fails ...
CesMRY's user avatar
  • 11
0 votes
0 answers
37 views

Content Encoding Error

I just installed wordpress through A2Hosting and I added blocksy as a theme. So it is a brand new site. I got the Content Encoding Error when trying to access my site and I managed to solve it by ...
Charles's user avatar
0 votes
0 answers
23 views

Dropdown menu only appearing when logged in

I'm having a problem where the Hamburger dropdown menu only appears when I'm logged in, I tried on multiple devices and I tried clearning the cache and removing all plugins (except elementor, without ...
French Noodles's user avatar
0 votes
1 answer
23 views

Best Practice for storing aggregate data by date or other criteria?

I'm creating summary descriptions by year. To do this I do update_post_meta on save to set values for word count, image count, external link count. So for a year archive page I iterate over each post ...
artlung's user avatar
  • 3,077
0 votes
0 answers
16 views

Flushing or disabling cache on WordPress

I'm running a website on WordPress.com. It's on a subdomain (let's call it wp.domain.com) of my root domain (lets call it domain.com). The main site on the root domain has a login/logout-routine that ...
janlindso's user avatar
  • 133
0 votes
1 answer
185 views

WPEngine caching + ACF Option field updates: Which cache is the culprit?

On a site hosted on WPEngine, I have all options for caching turned on. Recently, site editors/managers have been making updates to the site that are not consistently rendered on the front end. (On ...
StudioAl's user avatar
  • 464
0 votes
1 answer
361 views

Troubleshooting "Error establishing a Redis connection" during WordPress migration

I'm facing an issue when migrating a WordPress site from Namecheap hosting to Hostinger using the All in One WP Migration plugin. During the migration process, I encounter the following error message: ...
Mubashir's user avatar
1 vote
0 answers
319 views

"Object-cache.php" disables wp_cron and even disables my entire site, and keeps reappearing by itself again after I delete it

I'm having a truly maddening issue. It may involve plugins (or it may not, I don't know) but I believe it is sufficiently technical to be allowed here. A few weeks ago, I needed to revert to a backup, ...
John Smith's user avatar
1 vote
1 answer
818 views

How to configure redis object cache for multiple sites in the same server without errors

I have about 50 sites in my server. I have installed redis to be used for cache and trying to cinfigure redis object cache plugin. I have done all the configurations I have read. Without the ...
Timothy Mach's user avatar
0 votes
0 answers
33 views

Update Cache on Save Instead of Clearing It?

I'm working on getting my wp-admin faster and is thinking about how I can get those slow get_posts() with a lot of meta queries faster. I have already made som progress with replacing a lof of LEFT ...
Peter Westerlund's user avatar
1 vote
0 answers
41 views

wp_localize_script being cached

I've faced a problem of nonce value is being cached. I've embed the nonce in html by using wp_localize_script() However, the cache plugin has cached this value. Which result in nonce invalid from time ...
PokxE's user avatar
  • 11
0 votes
0 answers
33 views

Cache API Images to Prevent Hot Linking

I'm building a shortcode that display's a list of items from a public API, that each have a thumbnail URL. If I use the URL as src attribute, I create a request to their server for every image. I want ...
Cebbi's user avatar
  • 123
0 votes
0 answers
68 views

Purge single page cache in CloudFlare on post update

I'm using Clodflare with the cache all setting on, so all my posts gets fully cached. Now, when I update a post I'd like to clear the cache of that blog post in particular. I've installed the ...
Alvaro's user avatar
  • 131
0 votes
0 answers
11 views

Blank widgets page after core update - which files to purge cache?

When I update my WordPress network's core version I often find my sites have a blank widgets admin page. Dev console shows a lot of JS errors. This is fixed by doing a full cache purge of the domain, ...
Anthony's user avatar
  • 101
0 votes
0 answers
153 views

Sage theme caching issue on WPEngine

I have experienced an issue on WPEngine servers when deploying a Sage.io theme. The issue manifests as a persistent cache after copying the site from one environment to another where data/content ...
Tyrus's user avatar
  • 1
0 votes
0 answers
42 views

Skipping all WP functions for a cached version

I started making the following caching codes in order to create an experimental plugin that provides a solution to my own needs. add_action('wp_loaded', 'buffer_start'); add_action('shutdown', '...
G.D.i's user avatar
  • 23
0 votes
1 answer
29 views

Notice: Undefined index: h in themes/dentario/fw/core/core.wp.php on line 1515

I am getting this error on this theme and I am trying to find out if the website even needs this set of code. It is a theme that doesn't seem to have support. I contacted the support team and they ...
Rookie Recruits's user avatar
0 votes
1 answer
8 views

Enqueued stylesheets only loading when logged in. Hosting cache?

I'm having an issue where all my enqueued stylesheets in functions.php are only loading and showing in the head when I'm logged into wp-admin. When not logged in (i.e. what everyone sees), the ...
ajs_app's user avatar
  • 15
0 votes
0 answers
90 views

Image permalink interfering with category url

I'm trying to fix an issue on a client's site. The permalink for an image is site.com/Resources while a category is site.com/resources -- I've deleted and reuploaded the image to change the permalink, ...
csampson42's user avatar
0 votes
0 answers
59 views

Slow Loading Times for Uncached Pages

I have a job search website, http://www.jobvfx.com, where I’m utilizing both LiteSpeed Cache and Cloudflare to enhance performance. The caching is working effectively, and cached pages load within 2 ...
Parteek Singh's user avatar
0 votes
1 answer
225 views

all plug-ins load scripts on all pages

I noticed that almost all the plugins I installed load the css and javascript in the head of all pages, even those where the plugins are not used. I think this is slowing down the loading of pages on ...
LesCa's user avatar
  • 21
0 votes
1 answer
110 views

Request initiator chain contains old CDN

I changed the domain of my wordpress page (everything else works fine so far) and also the CDN provider, still in my dev tools I'm getting an error for one js-file I use Autoptimize and WP Super ...
tronc's user avatar
  • 103
0 votes
0 answers
93 views

admin-ajax.php won't load without logging as admin- JSON Parse error: Unexpected EOF

Has anyone here run into this error before? I have a WordPress webpage and I'm trying to load a map (OpenStreetMap) with lots of markers (geojson). It works fine if I'm logged in as admin but it doesn'...
Julian Hoang Yuen's user avatar
1 vote
1 answer
496 views

Busting Browser Cache when updating stylesheet of Wordpress website

When I've edited the child stylesheet for my site I'm encountering a problem where anyone who has already browsed my site will not see the correct version because their browser cache is using an old ...
Badger's user avatar
  • 11
0 votes
1 answer
37 views

Why are the most recent posts not appearing in a fetch request, unless I'm logged in?

A live site, using a custom theme, has recently developed an issue: recent CPTs are not being pulled through when using a JavaScript fetch request — unless I'm logged into WordPress itself. The fetch ...
verism's user avatar
  • 216
0 votes
1 answer
816 views

Does WP REST API cache internally executed (rest_do_request) requests?

We have registered a custom REST GET endpoint using register_rest_route(), consisting in the retrieval of posts of a custom post type (my_custom_post). We're using our own endpoint to do so as we do ...
DevelJoe's user avatar
  • 487
0 votes
1 answer
207 views

Why does enabling caching break password protected pages? Is there a way around this?

I've had it on a couple of client's websites now that having page caching enabled on a page that is password protected (either using a password protecting plugin or WordPress' default behaviour) ...
YourManDan's user avatar
0 votes
1 answer
271 views

Rest API nonce is being cached

I'm building a custom Rest Api endpoint. User can call this endpoint via ajax request in the frontend together with nonce value which was created by wp_localize_script( 'some-js', 'wpApiSettings', [ ...
PokxE's user avatar
  • 11
1 vote
1 answer
83 views

How to create a transient that persists the data for the whole duration of the expiration, even when object cache is enabled?

Anyone recommends an alternative to set_transient that persists the data for the whole duration of the expiration even when object cache is enabled? Example: List item Set a long-duration transient ...
Lucas Bustamante's user avatar
-1 votes
1 answer
56 views

Homepage not loading correctly, only after refreshing

I'm working on - https://nhukr.org/ When I open the site first I don't see my last changes, sometimes, the site looks like it without CSS. I cleaned the cache with different plugins. I disable caching ...
Yaroslav's user avatar
0 votes
1 answer
271 views

How to cache WordPress oembed links in the page header?

WordPress places JSON oembed links in the page header, such as in this example: <head> ... <link rel='https://api.w.org/' href='http://example.com/wp-json/' /> <link rel="alternate&...
Blake Patterson's user avatar
1 vote
1 answer
90 views

Cache a number of responses from external json feeds?

I have a project which displays information from about 60 stock tickers. The issue is, that the project is making requests every time the page loads for these 60 stocks. This is kind of how it looks ...
Pbalazs89's user avatar
  • 115
0 votes
1 answer
17 views

Styling not refreshing for old visitors on WordPress

I’m working on correcting a styling of an element on an WP-based eCommerce site. The site has both SCSS and CSS files. To make things quick, I edited the CSS via Appearance -> Customize -> ...
vishnu's user avatar
  • 101
0 votes
1 answer
18 views

Experiencing a weird caching issues without any caching plugins

I have a site that I made updates to, however none of the changes show up when I log out. I can see all the changes on the pages when I am logged in, but I even went as far as to remove a link from ...
Rob's user avatar
  • 101
1 vote
1 answer
69 views

Convert Wordpress to static website by using the pages generated by the caching plugin?

Since the caching is already making HTML pages, I was wondering if those pages can be used as a static version of the site. Example: Have a private WordPress installation with caching plugin A ...
Ciprian's user avatar
  • 23
0 votes
0 answers
110 views

Browser Caching for Logged in Users

We've run into sort of a quirky problem with browser caching that I'm having a hard time finding an answer to. When users log in to the site, if they go to a page they have already visited, it will ...
Tabytha Rourke's user avatar
0 votes
1 answer
27 views

Cannot add version of main.css to wordpress on testing enviroment

I am struggling with css caching on my wordpress theme. I am trying to change the version of css, but no matter how I do it, it still won't print css version on staging (testing) enviroment. I can see ...
MGmgmgmg's user avatar
0 votes
1 answer
40 views

Wordpress Cache delete on plugin uninstall

I am developing a custom plugin in which I am storing some data in Cache using cacheKey. I was wondering in this case if I should write someting in the uninstall.php file, more specific, if there is ...
Urus221's user avatar
0 votes
1 answer
147 views

RSS: fetch_feed caching with different caching delay per feed?

I have seen that the filter wp_feed_cache_transient_lifetime can be used to set the cache period for fetch_feed. But this seems to set it globally for all feeds. Is there a way to have a different ...
shelbypereira's user avatar
1 vote
0 answers
99 views

How to combine wordpress_logged_in cookies in one cookie?

I'm trying to optimize my server to consume less resources as possible and increase overall performance. In my site I don't see a need to recompute same requests for users or guests every time. The ...
AtomX's user avatar
  • 109
1 vote
2 answers
978 views

What is the best way to cache pages and queries in WordPress?

I have a site with many custom queries. Some take many seconds to load a page. To solve that issue, I have been using a caching plugin. The issue is, my caching plugin does not cache a page until I ...
DJZEEGLER's user avatar
  • 119
1 vote
2 answers
183 views

Append a query string to the end of every URL

I'm trying to append a query string to the end of every URL for logged in users for cache busting purposes. Here is the code I have but it doesn't seem to work. Any ideas? function add_admin_qs($url){ ...
228's user avatar
  • 21
0 votes
0 answers
74 views

Categories are not available AT ALL under Menus

I installed and activated Envo Shop for my new WordPress website which is hosted on Hostinger. Everything almost is going good except, Categories which are not showing up under Appearance, Menus. ...
Mr JJ's user avatar
  • 1
0 votes
1 answer
229 views

"Intercept" enqueing of 3rd party's JS file

I'm using a 3rd-party plugin, but I need to load the non-minified version of a specific JS file of the plugin, to avoid some image preloading caching; in the AJAX call when preloading some images, the ...
Faye D.'s user avatar
  • 126
0 votes
0 answers
77 views

How to stop Facebook mobile in-app browser cache on WordPress

we needed to create briefed posts and publish, then in a few hours we update the post content. post content gets updates on web and the end user can see the updated content. but if a user opens up the ...
janithcooray's user avatar
0 votes
1 answer
236 views

Add version # to wp_register_style function

How do I add a version number correctly? I have checked wordpress codex but their wp register style function looks different than mine and I don't want to break anything. Here is mine ...
user avatar

1
2 3 4 5
13