The caching stuff is sort of vaguely worthless and should really only be used when you absolutely know you need and and understand what it does.

 

It caches some db queries so some of the data you see in the UI will be out of date, wrong counts in menus, status summary, etc.

 

It should really only be used when an instance is so massive it’s not possible to make MySQL fast enough.

 

Adam.

 

From: observium <observium-bounces@observium.org> On Behalf Of Graeme Davis via observium
Sent: 08 July 2021 13:07
To: Observium <observium@observium.org>
Cc: Graeme Davis <graeme@graeme.org>
Subject: Re: [Observium] APCu Caching not working?

 

Our main Observium instance has been loading very slow recently ... I disabled APCu (caching was set to auto) and it's soooo much faster now!  We're on CentOS 7 / PHP 7.4 / MariaDB 10.2

 

Thanks,

Graeme

 

 

On Wed, Jul 7, 2021 at 10:47 AM Milton Ngan via observium <observium@observium.org> wrote:

this is running on ubuntu18.04 with php7.2. but i repro’ed the issue on ubuntu 20.04 with php7.4. 

 

Sent from my iPad



On Jul 7, 2021, at 2:35 AM, Adam Armstrong via observium <observium@observium.org> wrote:

 What version of PHP is this to have a 3 year old apcu?

 

Adam.

Sent from my iPhone



On 7 Jul 2021, at 10:32, Milton Ngan via observium <observium@observium.org> wrote:



APCu is definitely installed. PHP sees it, Observium sees it. But when you use /cache_info in the URL you can see it constantly writing back to the cache, and never getting any hits. 

 

<Screen Shot 2021-07-05 at 2.20.18 PM.png>

<Screen Shot 2021-07-06 at 10.57.39 AM.png>

 



On Jul 6, 2021, at 10:24 AM, Markus Klock via observium <observium@observium.org> wrote:

 

Did you install the php-apcu package?

sudo apt-get install -y php-apcu

 

/Markus 

 

Den tis 6 juli 2021 kl 18:40 skrev Milton Ngan via observium <observium@observium.org>:

I have noticed that when I enable webUI caching, that the page loads don’t speed up. It regularly takes 3 seconds to render a page, although the tool tip at the bottom shows APCu caching is enabled. However, if I force the cache driver to “files”, then I see a huge speed up (page loads drop to about 100-200ms).

Is there some extra config to get APCu working correctly? I didn’t see anything in the docs, but I could have missed it.


_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium

_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium


_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium

_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium

_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium