APCu Cache: Staging and Live share same cache data

Hi

My websites staging and live version are running on the same shared hosting.

When I use APCu cache

'cache' => [
   'pages' => [
      'active' => true,
      'type' => 'apcu',
   ]
]

Both Sites share the same cache data. The Entry Label (or Key as I assume) does not differ between the installations and therefore overwrite each other.

Is there a configuration I am missing or is it an issue with Kirbys APCu integration?

See this issue: https://github.com/getkirby/kirby/issues/1496

Thx!

Solved it with config files per host and the manual prefix live or stage:

'cache' => [
   'pages' => [
      'active' => true,
      'type' => 'apcu',
      'prefix' => 'live'
   ]
]
1 Like

@moeli, what is that UI for the APCu cache?

@bvdputte the monitoring tool from the official repo apc.php
Set an admin user/password for the detail reports and upload it to your server.

2 Likes

Thank you Matthias!