calmPress / calmpress

A modern CMS based on WordPress
https://calmpress.org/
22 stars 1 forks source link

stale values in object cache after disable/enable #331

Open markkap opened 3 years ago

markkap commented 3 years ago

A possible scenario, APCu is active and values stored in it. At some point in time it is disable, and enabled an hour later. During this time there were changes to the settings (for example) but when APCu is enabled the old values will be read out of it.

Same goes for opcache based object cache.

Solution should be some scheme that cleans the cache before making use of it.

markkap commented 3 years ago

not sure there is any good automatic way to solve it as there is no obvious indication when a cache becomes available. The best hope is that entries will expire.

332 will help with overcoming problems generated by stale values. This issue is punted for now