By default Cache uses SEED which is generated using php SERVER_NAME global variable.
When accessing a website from localhost/ vs summer-pc/ it will generate a different SEED.
The correct way to solve this is to explicitly call Cache::instance()->load(DSN, SEED);
Unfourtantly this is not documented for the Cache::load documentation
https://fatfreeframework.com/3.6/cache#loadAnd further would you call this a bug? I understand that using SERVER_NAME creates a way to ensure when moving from a development server to a production server the development cache isn't used. But what happens if you run the website off two different domain names, that means two different Cache sets are created which is not ideal, or perhaps it might be for caching static pages.
For my case I'm using Cache class for a simple visit counter. But I also use it for skipping debug checks such as ensuring extensions are loaded, etc...
Would I be on the right track calling this a bug or is it more ideal to use SERVER_NAME.
Either way, calling Cache::instance()->load solves this completely for me.
Thoughts?