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
0 answers
11 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
26 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
  • 444
0 votes
1 answer
26 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
0 votes
0 answers
38 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
0 votes
1 answer
124 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
18 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
16 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
21 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
23 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
  • 121
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
29 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
28 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
26 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
7 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
  • 13
0 votes
0 answers
35 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
33 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
63 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
56 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
72 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
321 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
21 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
  • 206
0 votes
1 answer
469 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
66 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
160 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
0 votes
0 answers
41 views

Browser Caching .htaccess

I must be missing something. Here is the excerpt from my 'htaccess file'; <IfModule mod_expires.c> ExpiresActive On # Images ExpiresByType image/jpeg "access plus 1 year" ...
BadScooter1980's user avatar
0 votes
0 answers
53 views

How can I improve and optimise my wordpress web server for better performance in 2023

How can I better optimise my Ubuntu 22.04.2 LTS wordpress website web server for better performance Well what I want to know is any good wordpress tricks that actually work well specially when it ...
Crypto Coupons's user avatar
1 vote
1 answer
57 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
0 votes
0 answers
16 views

How to save the results of a query as a php file for an autocomplete search bar

I'm looking to cache the results of some queries in order to make autocomplete search bars and lists for forms. I'm using it for a form with <input type="list">. I'd like to save the ...
DJZEEGLER's user avatar
  • 119
-1 votes
1 answer
43 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
0 answers
21 views

Wordpress custom header parameter combine with cache

I want to add the post ID to headers parameters for wordpress. Regularlly, when no cache, it's working fine. But when cached is enabled. It's hidden. The idea basically put the header("ID: "...
Diep Tang's user avatar
0 votes
1 answer
191 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
89 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
13 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
17 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
47 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
77 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
29 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
111 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
81 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
560 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
129 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
32 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
183 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
  • 127
0 votes
0 answers
72 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
178 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
2 votes
2 answers
1k views

How can I prevent caching of wp_redirect?

I am working on a multisite install where one specific site needs to have access restricted to only users who are logged in AND have a specific user meta set (key="cr_access", val="Yes&...
Ben Aldrich's user avatar
0 votes
0 answers
210 views

Can't get the frontend cache to be deleted manually

After couple of nights of searching and trying various approaches, I haven't found any solution. Issue Cache not clearing after saving manually post meta. I'm creating a tool for admins, which will ...
Antti Tolvanen's user avatar
1 vote
1 answer
50 views

Why a URL with a query is always slower than that without a query?

I find a strange thing. For a WordPress site, a URL with a query is always slower than that without a query, even no Cache plugin is installed/enabled and no CDN cache is enabled. For example: http://...
alancc's user avatar
  • 41
0 votes
1 answer
51 views

How to get the URL of a sitemap that contains a certain post?

I am searching for a way to "detect" in which sitemap a post is located in but I cannot find any solution to this problem, nor does any SEO plugin or Cache plugin provide any way or wrapper ...
cristianuibar's user avatar

1
2 3 4 5
13