Tag: Cache
-
Post Views: 90 Recently, when I was doing the slices practice of the official go to the go, I encountered a series of dependencies download and running errors, and after tossing, I finally succeeded in running through. I have sorted out the complete stepping process and solutions, hoping to help those who practice Go Tour locally like me, and avoid…
-
Post Views: 27 1. The industry information page cache has not been updated in time. When a new article is added in the background, the list page of the front desk is not updated in time, and it always takes 5 minutes to update. I feel that the dependency of the page cache has not taken effect. The latest two…
-
Post Views: 23 1. To set the configuration value at runtime, pass an array to the config function, which is reset in the middleware 2. The Singleton method binds a class or interface to a container that is only parsed once. Once the singleton binding is resolved, the same object instance will be returned to the container in subsequent calls.…
-
Post Views: 17 1. When using Redis with Laravel, there are two solutions, one is to install the phpredis php extension, and the other is to install the predis/predis package through composer. However, Predis has been abandoned by the original author of the package and may be removed from Laravel in future releases. It was finally decided to use the…
-
Post Views: 16 1. When running the test case of lighthouse, an error is reported: classoverTrue\LaravelVersionABLE\ServiceProvidernot found. as shown in Figure 1 2. Search the class in the IDE: overtrue\LaravelVelVersionable\ServiceProvider, not found. as shown in Figure 2 3. Find the code in the project: LaravelVersionable, find the file /bootstrap/cache/packages.phpunit.php exists in: overtrue\\LaravelVersionable\\ServiceProvider . as shown in Figure 3 4. View…
-
Post Views: 18 1. Report an error in Laravel 6: log.error: this cache store does not support tagging. {“exception”:{}}. as shown in Figure 1 2. Check the log file, /storage/logs/laravel-2022-01-11.log 3. Edit the .env file, and adjust the cache_driver=file to cache_driver=redis. No more errors. as shown in Figure 2
-
Post Views: 14 1. Reference URL:https://www.shuijingwanwq.com/2021/11/10/5453/. A single data item in the list, after closing it in the background, should have been disappearing all the time. However, within a few minutes, it appears and disappears for a while. After about 5 minutes, it finally disappeared forever. 2. Search in the Rancher of K8s: Varnish, and find that there are 3…