APCu Cache: Staging and Live share same cache data

#1

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?

#2

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

#3

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
#4

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

#5

@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
#6

Thank you Matthias!