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
8 views

Cost efficient way of pre-loading cache on server

So I've been struggling with my woocommerce site and its loading time since it has a lot of content the loading time is very slow for anyone to be interested in waiting for it to load. I was told that ...
0
votes
0answers
14 views

Creating a cache but cant seem to find add_widget or edit_widget do_action

Creating a cache plugin when I edit/delete/add post etc, it will reset the cache but can't find add_widget or edit_widget. Does anyone have the answer? What other do_action am I missing here? ...
0
votes
1answer
19 views

Done some optimization but still page speed not improvised on my wordpress site

Am using the Autoptimize plugin to minify CSS and js file to improve speed. also done the code changes to manually defer the script files. Still, there are no improvements on the mobile page, Please ...
0
votes
2answers
44 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 ...
0
votes
1answer
29 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, ...
0
votes
2answers
22 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 ...
0
votes
2answers
21 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 ...
0
votes
0answers
51 views

how to prevent post update time and DL count from caching Litespeed

in my site, I have some sections like post update time and DL count. these sections must return real value. for them, I used from ESI block by PHP code. add below code in my function.php file: ...
0
votes
0answers
18 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:...
0
votes
0answers
35 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’...
0
votes
0answers
14 views

theme change doesn't show on mobile

I've uploaded a new version of the child theme, adding a -v2 onto the theme folder name. However, my mobile is still viewing the non-v2 theme's stylesheet. How do I force mobiles to respect the new ...
0
votes
1answer
35 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 ...
0
votes
0answers
92 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 ...
0
votes
1answer
88 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'...
0
votes
0answers
11 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://...
0
votes
1answer
36 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 ...
0
votes
0answers
17 views

Problem with cache, plugin Litespeed and server Litespeed

I have been using the wordpress Litespeed plugin on my site Trailer y Estrenos CO. I have the Chemicloud hosting and it uses the Litespeed server, which according to them, it works super well if is ...
0
votes
0answers
31 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 ...
0
votes
1answer
9 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 ...
0
votes
0answers
12 views

Changing cache update rate

Im using mylisting theme in wordpress. in listing ordering, one option is Random (cached and updated every few hours). How can I adjust the update rate from few hours to few minutes ? or even remove ...
0
votes
2answers
24 views

What do I do if my WordPress site is suddenly sanitizing portions of URLs it shouldn't?

Nobody has touched wp-admin for this site in weeks. Suddenly, URLs are being sanitized in ways that break everything. The question marks of query parameters are being replaced with URL escape code %3F,...
1
vote
1answer
26 views

Wordpress is not able to change themes

Wordpress Website has two themes, newspaper magazine and twenty twenty, it uses by default newspaper magazine, if I change to twenty twenty, the homepage remains using newspaper magazine, but if I go ...
0
votes
0answers
96 views

How to fix Autoptimize and Cloudflare interaction

Yesterday I was trying to change just one option of the WP Autoptimize plugin (inline and defer css) to avoid it render blocking. This was the process of it: I extracted the critical CSS with an ...
0
votes
0answers
54 views

The editor has encountered an unexpected error. Shortcut key to duplicate Ctrl+Shift+D breaks gutenberg

whenever I try to use the shortcut key to duplicate Ctrl+Shift+D , wordpress gutenberg editor just errors out “The editor has encountered an unexpected error” Please help, its very hard to write ...
0
votes
0answers
62 views

How to speed up post list slowed by update_meta_cache()?

Having run Query Monitor on my site, the post list for a custom post takes 18.17s. Query Monitor advises 2 Slow Queries, including... SELECT term_id, meta_key, meta_value FROM wpcxt_termmeta WHERE ...
0
votes
1answer
16 views

Language does not switch while cache is enabled

At my website I have a button when pressed PHP script through ajax write session variable to change language and reload page. But when I enable caching every time is loading default language. When ...
0
votes
0answers
17 views

How to use cache for different language pages and handle multiple languages?

I have webpage with language change button. When I press the button I write into php Session variable parameter 'en' for english language. Then I reload whole page, but language is still same nothing ...
0
votes
0answers
19 views

Dark mode with cache plugins

I integrated dark mode switcher into my theme. It's logic of work is as follows: I made a button with jquery, it toggles dark_mode cookie value 1 or 0 In my php: if ( isset( $_COOKIE[ 'dark_mode' ] ...
1
vote
0answers
30 views

How can I cache the LearnDash quizzes on my server?

I'm using the WP LearnDash module for providing my courses. I see sudden horrible lags particularly when using the quizzes. Most of the time they load in a couple of seconds. However, sometimes it can ...
0
votes
1answer
18 views

Check the stored / cached WP_Query with transients on post change

right now I have WP_Query stored for 24h (1day) with set_transient function. Everything works fine like it should. But if for example I change the post which is in the stored array to private or ...
0
votes
1answer
57 views

Wordpress mobile version is not responsive anymore after installing varnish

# Default backend definition. Set this to point to your content server. backend default { .host = "127.0.0.1"; .port = "8080"; } sub vcl_recv { # Set the X-Forwarded-For header so the ...
0
votes
0answers
20 views

Deactivating and reactivating template solved problem… but how?

I just feel the need to mention I'm not a rookie. I code my own "lean and mean" templates, and know my way around PHP. That said, today I had a problem. I have a page... "foo", to which I applied a ...
0
votes
1answer
200 views

Should I use wp_cache in my plugin to make it faster?

As a plugin developer, I strive for coding plugins that take as less server resources as possible. That's why I thought of avoiding to repeat queries to the database that are run on the same request (...
0
votes
0answers
432 views

admin-ajax.php 403 errors - no caching, permissions are fine

After putting up a recent dev site, I'm met with a very annoying 403 error I can't figure out. It's only an issue with non-WP core widgets (for example, Recent Posts Extended) and I can't add scripts ...
0
votes
0answers
34 views

Get User Info without using PHP

Here's my issue: When a user logs in to our WP site, we want to show the user's first and last name next to the login icon on every page (to show that they're logged in and add some personalization ...
0
votes
1answer
72 views

Using Cloudflare caching on wordpress with front-end user logins

I use Cloudflare heavily on all my sites. On https://pokerdiy.com I use the MyListings Theme which uses an AJAX login and Woo Commerce. The user never sees the default wordpress dashboards and control ...
0
votes
3answers
130 views

WordPress localhost site always redirect to live site [closed]

I know that there is already a similar question like this. But I have already done all these suggested solution and nothing works for me. If there are caching plugins installed like W3 total cache. ...
0
votes
1answer
197 views

Execute inline javascript in wordpress after page fully loaded

I am trying to find out the time it takes to fully load a page in wordpress using javascript.My JavaScript code is inline.I am using wp_print_scripts hook but as it prints scripts in document head i ...
0
votes
0answers
20 views

Admin area is caching posts in the editor

I recently updated to WP 5.3.1 And now, when I create a new post, it mixes up with previous posts. Also, when I reload the post list index in the WP admin area, it will not display the last ...
1
vote
1answer
20 views

Execute a piece of code also when the cached version of a page is served

How can I be sure that a piece of code is executed also for the cached page of the website?
0
votes
0answers
23 views

How to reset WP plugin?

I installed a plugin a few days back and deleted it. When I installed it again, it is showing the same data entries which I previously entered in the plugin. I have cached all the data but the problem ...
1
vote
0answers
57 views

changes to widget settings not showing up in individual pages pages until they're updated [closed]

I'm using a plugin to add a widget to my sidebar. That widget has some settings that I'm still fiddling with in order to get things right... After adjusting the settings on the screen above and ...
1
vote
0answers
110 views

WP Rocket Cache Lifespan - Never clear cache? [closed]

Recently I've installed WP Rocket. Works good but even if the cache lifespan option is set to 10 hours it actually never really clear the cache and caching files are growing each day. When I clear ...
0
votes
0answers
15 views

Using cache brokes redirecting

In my .htaccess I have a rewrite rule to redirect from /index.php to /, and it works perfectly immediately after I clear cache, but doesn't work after some time (maybe page /index.php got cached). I'm ...
0
votes
1answer
85 views

WordPress transient not working with WP Engine

For some reason, when we we're on another server (Tierpoint) everything worked fine and we recently switched over to WP Engine and the transients that I was using for my module have stopped working. ...
0
votes
0answers
74 views

Nonce timing out when cache is in use

I have implemented a plugin that allows an individual to search data that is available from the plugin and receive a list of results back from that search. Searching is the only act that can be ...
0
votes
0answers
64 views

How to disable Caching of Iframe SRC caching on WP Rocket and Cloudflare

Scenario: I have a post page with iframe with a dynamic src with time limited token, example <iframe src="https://xxxxxx.com/?token=dynamic_time_limited_key"></iframe> The time limited ...
0
votes
1answer
43 views

Using Transients

I am new to the transient concept. But I am not sure about the efficient method to use it. I really liked it as it removed the duplicate queries that I had. I have set set_transient( '...
2
votes
1answer
408 views

Duplicate Queries

While using the query monitor plugin I could notice I am making a database query 4 times. I am using OPP. So I have a method that gets me a list of posts by querying the database. I have to do this 4 ...
1
vote
1answer
18 views

Cache policy not updated according to PageSpeed

I am trying to update my cache policy by adding some directives in the .htaccess file in the root of my website. Although I updated the values for javascript files to be 1 month, when using Google ...

1
2 3 4 5
12