laravel-cache

Is there some sort of Laravel Controller cache?

与世无争的帅哥 提交于 2021-02-07 06:48:19
问题 Weird problem I'm having with Laravel 5.5 I can update and even delete a controller and yet it appears as if a cached / old version is still being called. I've tried clearing cache, clearing route cache, clearing config cache - doesn't seem to have any effect. On my local test environment if I delete the controller file then try to access it I immediately get a not found error. On my production server I do not. Anyone have any ideas or advice? 回答1: You can try running: php artisan clear

How to pass a PSR-6 compliant cache adapter in Laravel 6.X?

限于喜欢 提交于 2020-01-25 07:25:47
问题 I note there is a cache.psr6 container alias but if I use: new Cache As the instance, I get an error that getItems isn't available, which, I assume, means I am not passing a PSR-6 compliant cache instance. I'm using Redis if that changes the config in any way. Is there an additional configuration to be done or am I passing this the wrong way? The library I am using is: https://github.com/AlexaCRM/dynamics-webapi-toolkit/wiki/Tutorial And the tutorial states: You can optionally supply a PSR-6