2022 Developer Survey is open! Take survey.

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
1 answer
18 views

What is the best way to cache pages on 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 ...
user avatar
0 votes
0 answers
16 views

Caching and iframe problem [closed]

I have a page that has some select elements. On changing those elements the javascript will assign an htm file to an iframe. It all works the first time in but if whilst on one document another ...
user avatar
  • 7
0 votes
0 answers
26 views

Add cache control header to images [closed]

I have a site with a pretty detailed background image and for my application I need the site to be very fluid. But every time a user navigates to a new page, the background changes to gray for a split ...
user avatar
0 votes
0 answers
15 views

Error with automatically updating Wordpress in Plesk [closed]

Plek tries to update my Wordpress but gives this error. Does anyone know how I can reset the cache, or have an other solution? 1. Website "Domain" (https://www.domain.nl): Failed to reset ...
user avatar
  • 101
1 vote
2 answers
34 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){ ...
user avatar
  • 21
0 votes
0 answers
10 views

Get user name and caching system

I am trying to get user name by this function and shortcode function custom_shortcode_func() { ob_start(); $current_user = wp_get_current_user(); echo 'Welcome ' . $current_user->...
user avatar
0 votes
0 answers
12 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. ...
user avatar
  • 1
0 votes
1 answer
36 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 ...
user avatar
  • 111
0 votes
0 answers
10 views

Changing WP Object Caching during runtime

If I an external object cache (provided by W3TC), but in specific usecases use wp_using_ext_object_cache(false) during Runtime somewhere in the middle of the WP page - Does this change during effect ...
user avatar
  • 152
0 votes
0 answers
32 views

Prevent AJAX caching from plugin

I made some custom work on an existing plugin to extend its functionality in a specific way that would suit my needs... The work I made is transparent, meaning that of course I didn't touch the plugin'...
user avatar
  • 111
0 votes
0 answers
17 views

Memcaching recurring SQL Queries

I have a highly dynamic Buddypress page with integrated WPML translation. Right now I'm optimizing a lot of things and using "Query Monitor", I found out, that there are about ~50 Queries on ...
user avatar
  • 152
0 votes
0 answers
28 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 ...
user avatar
0 votes
1 answer
42 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
0 votes
0 answers
8 views

how long do restored versions take to go live?

I just restored a page to a version from august of this year but I can see on the live site it's still there. I refreshed the page and cleared the cache however it is still showing on the live site. ...
user avatar
  • 101
0 votes
0 answers
24 views

I'm receiving the following error using the below code: Uncaught Error: Cannot use object of type WP_REST_Response as array

<?php /* Plugin Name: Flyp wp-json no cache Description: Disables the caching of /wp-json/ requests adding no chace headers to the response. Version: 0.1 Author: Nolte Developer */ // The ...
user avatar
  • 1
0 votes
2 answers
128 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&...
user avatar
0 votes
0 answers
53 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 ...
user avatar
1 vote
1 answer
46 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://...
user avatar
  • 41
0 votes
1 answer
41 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 ...
user avatar
0 votes
0 answers
25 views

Best practices for the cache of a static WordPress site, including CDN Cache and Cache Plugin

I am studying the best practices for the cache for a Wordpress site. THe Wordpress site is: Not updated frequently(maybe once in a week). The update is only initiated and controlled from me, it does ...
user avatar
  • 41
0 votes
1 answer
45 views

Changes not visible when not logged in

I have a wordpress site and 4 hours ago I have made some changes to the home page and an internal page. The changes I can see when I am logged in. When I try to log out, I only see the old pages and ...
user avatar
0 votes
1 answer
23 views

Updates are not showing to public (New Posts , Theme Change)

if do any changes to website like adding New Post and changing theme are not reflecting to public but as a admin changes are showing. For reference please find the attached images. As a Admin As a ...
user avatar
0 votes
0 answers
20 views

Site’s first loading on a new browser with no cache is messed up

When I start my website on a new browser everything is messed up, and looking like it is missing the CSS ( doesn't look like it misses HTML tho). The problem can be minimized by surfing threw the site ...
user avatar
0 votes
2 answers
41 views

How to update only certain custom fields in a the cache of a page?

I would like to use REST API to update custom fields on various pages - an example would be tracking outside temperature, humidity, etc from a sensor. However, if the website has cache, the pages won'...
user avatar
  • 1
0 votes
1 answer
27 views

My wordpress theme name isn't updating straight away

My theme name in the metadata is defined in style.css as Theme Name: No Contrast Theme Name: Lap of Luxury But when I refresh the page in "manage themes" the theme name doesn't update. ...
user avatar
  • 101
0 votes
0 answers
32 views

Reduce number requests to database

I am developing a module that every time the web is refreshed, it reads some values ​​from the wp_options table. My idea is to reduce these reads by caching the values ​​and I have coded the following ...
user avatar
0 votes
0 answers
64 views

Problem with MEMCACHE and Redis with wp_options

I have developed a plugin for worpress but it is giving me problems when I start MEMCACHE o REDIS CACHE. I have been told that the problem is that I am using wp_options directly and that I should ...
user avatar
0 votes
0 answers
193 views

How to cache a custom API call?

I build a little Python API and would like to cache the responses for 24-hrs. As I use it in a shortcode like [google keyword="example"] it will always do the API-call once I open the ...
user avatar
0 votes
1 answer
104 views

How to solve simple wp simple ajax chat caching problem

i have a frustrating problem with simple ajax chat wordpress plugin. When am trying to create a page with a livechat shorcode and i also need to use cache. But when i enable cache the ajax live ...
user avatar
1 vote
1 answer
411 views

browser caching not disabled after disabling in .htaccess

I am having a strange problem in one of my wordpress websites. The problem is that when a webpage is rendered once, editing that page won't be effected afterwards. So no matter how many times you ...
user avatar
  • 123
0 votes
0 answers
45 views

How to fix caching issue in PHP data from database

Im trying to use the code belong for my plugin development but there is a caching issue (I think). Please below for the details. Problem I created filter to accept the customized url, and I'm querying ...
user avatar
  • 111
0 votes
1 answer
18 views

How to add support for caching plugins for my own plugin?

Is there a generic way to support caching plugins? For example to set a flag after you update an option that caching plugins watch? For example WP Super Cache has this: function wp_cache_clear_cache() ...
user avatar
1 vote
1 answer
5k views

How can I set Cache TTL for woff and woff2 font files with htaccess?

My WordPress site htaccess file currently has these entries to set cache expiry for woff and woff2 font files: <IfModule mod_expires.c> # Content type AddType application/font-woff .woff ...
user avatar
  • 175
0 votes
0 answers
53 views

Save large WP_Query to transient === false

I try to save a WP_Query to a transient but it's always comes back false dispite the fact that the transient is saved. Here is the code: $fitsToTransientName = 'g_wc_fits_to_' . get_the_ID(); $...
user avatar
0 votes
1 answer
227 views

Woocommerce - how to round up all prices to end in .99

I need to update all prices in my store to end in .99, both on the front end and in the database. I have the following code which appears to do it when I run a shortcode, but I have a problem. When I ...
user avatar
  • 369
3 votes
1 answer
88 views

Stale cache handling with a persistent object cache

Lets say you are doing an update_option() and because of some temporary network glitches updating the value in Redis/Memcached fails and you end up with a stale cache for a specific option key. The ...
user avatar
  • 923
0 votes
0 answers
62 views

Undefined cache functions in my custom plugin

I am making a plugin that make a HTTP call to my API, I want this call be cached an tried using this way: static function get_info(){ $cache = wp_cache_get( $username, "action" ); if(...
user avatar
0 votes
2 answers
180 views

WP 5.5, child themes, customizer and a weird cache issue

Update: I created a fresh new installation of WordPress, copied both Base and Base Child themes and activated Base Child. The Appearance/Customize gives the same white screen as described in point 1 ...
user avatar
  • 3
0 votes
1 answer
304 views

dynamic page not displaying correctly when Varnish hosting ignores query string parameters

I have a WP site with managed hosting that uses Varnish. I have a landing page that displays the appropriate images based on a couple arguments passed through the query string. So for example, ...
user avatar
  • 191
0 votes
2 answers
126 views

When I save changes for css and js in my WP localhost env windows 10 the changes don't take effects immediately!

Hey guys I am developing a wp theme, and I am using for localhost server XAMPP and Wampserver.So anytime I save my changes specially for css and js it doesn't take effects immediately! sometimes it ...
user avatar
0 votes
2 answers
164 views

How to be sure to get last page version without ANY cache?

As developer, you want all the time the last version files on page refresh action. As I understood, there are 3 kinds of cache : Browser cache (Browser settings) Website cache (WP plugins) Proxy ...
user avatar
  • 770
0 votes
0 answers
81 views

Is there a way to cache mailchimp css on wordpress?

At that point where I'm playing with load times and scores on Lighthouse, GtMetrix and the like, and am seeing problems? where external css scripts aren't being cached. For example, from mailchimp.com:...
user avatar
  • 105
0 votes
0 answers
376 views

Pictures randomly replaced by blue question mark

My pictures are sometime replaced by blue question mark On the devices that have already visited my website, some pictures are randomly replaced by blue question mark. (first time visitors usually don’...
user avatar
0 votes
1 answer
309 views

Gravity forms / Recaptcha / Autoptimize - somewhere it goes wrong

I am using Gravity Forms and have recently started using their Google Captcha integration. (We also use Autoptimize ) The problem I have is that de captcha validation goes wrong, but I am not sure ...
user avatar
0 votes
0 answers
1k views

How do I disable cache for a certain page?

Wordpress beginner here with a probably easy problem, yet I don't know how to do it. I want to disable caching on certain pages of my site. I best describe what I do: I have written a plugin in php ...
user avatar
  • 113
0 votes
1 answer
1k views

How to not cache nonces with WP Rocket?

We have a system where we pass a nonce from a PHP-script on the server to an AJAX-call running client-side, and then back again to check the validity of the request. This nonce is cached, and we can'...
user avatar
  • 42
0 votes
0 answers
46 views

Site speed slows when user logged in

my wp site is hosted on an IIS windows server. Issue is, my ttfb when a user is logged in is a lot longer (2/3 seconds) then when no user is logged in (super fast). See this video for a demo: https://...
user avatar
  • 103
0 votes
1 answer
478 views

Password Protected Pages Don't Accept A Valid Password After Changing The Password

I have a password protected page which I recently was asked by my client to change the password. The password protection is done from the WordPress dashboard by using the Status and visibility option ...
user avatar
  • 101
0 votes
0 answers
45 views

Google Page Speed

My website is in Wordpress so I am asking question regarding Google Page Speed here. My issue is i had completed the development of home page of existing page now when i am trying to check the score ...
user avatar
0 votes
1 answer
121 views

Page not found if mod_cache_disk is active

I set in Apache the mod_cache_disk module, but I'm getting 404 page not found error on every page and posts. I'm using WordPress Multisite on Debian 10 server with PHP FPM 7.4. I set this below in ...
user avatar
  • 289

1
2 3 4 5
12