Hello @dan14
Thank you for your inquiry and I am happy to assist you with this.
Just to confirm everything works as expected with no Object Cache enabled but when you enable Object Cache the issue starts to occur?
If that’s the case then it’s the first kind of issue like this reported.
What is the caching method you are using for Object Caching? Are you on shared hosting?
Thanks!
Thread Starter
Dan14
(@dan14)
Shared hosting, using object cache, disk. I am not sure why this is happening to be honest. I dont see this on all pages, only on certain pages but same plugins run on same pages so I dont know why. Excluding nav mene roles from cache for logged in users will probably solve it. I am excluding all cache for logged-in users already.
Hello @dan14
Thank you for the information.
I just want to double-check if the issue only occurs when you enable Object Caching?
Try disabling the Set expires header in Performance>Browser Cache>HTML&XML and see if the issue persists.
As for the object caching, Object Cache allows getting data from the database more efficiently. Its purpose is similar to what Database Cache does. But compared to Database Cache, Object cache is more efficient as it allows us to process fewer requests.
As a rule of thumb, Object Cache is not worth using on shared hosting for the same reason as Database Cache, i.e. database is often not the performance bottleneck, but disk input-output operations. However, like Database Cache, it can be beneficial to use if you are on VPS or a dedicated server, get a lot of traffic, have a lot of comments. Also, if you know that database is the bottleneck of your website performance, then Object Cache (like Database Cache) is beneficial to use. But in this case, it’s recommended to use, Memcached, or Redis options.
Thanks!