CakePHP Cookbook Documentation 5.x
'default', false); Configure::load('other_config', 'default'); Environment Variables Many modern cloud providers, like Heroku, let you define environment variables for configuration data. You can configure IP address. Trusting Proxy Headers If your application is behind a load balancer or running on a cloud service, you will often get the load balancer host, port and scheme in your requests. Often load balancers For example: $cloud = Cache::read('cloud'); if ($cloud !== null) { return $cloud; } // Generate cloud data // ... // Store data in cache Cache::write('cloud', $cloud); return $cloud; Or if you are0 码力 | 1080 页 | 939.39 KB | 1 年前3CakePHP Cookbook Documentation 5.x
'default', false); Configure::load('other_config', 'default'); Environment Variables Many modern cloud providers, like Heroku, let you define environment variables for configuration data. You can configure Release 5.x Trusting Proxy Headers If your application is behind a load balancer or running on a cloud service, you will often get the load balancer host, port and scheme in your requests. Often load balancers For example: $cloud = Cache::read('cloud'); if ($cloud !== null) { return $cloud; } // Generate cloud data // ... // Store data in cache Cache::write('cloud', $cloud); return $cloud; Or if you are0 码力 | 848 页 | 2.53 MB | 1 年前3CakePHP Cookbook 3.x
'default', false); Configure::load('other_config', 'default'); Environment Variables Many modern cloud providers, like Heroku, let you define environment variables for configuration data. You can configure IP address. Trusting Proxy Headers If your application is behind a load balancer or running on a cloud service, you will often get the load balancer host, port and scheme in your requests. Often load balancers For example: $cloud = Cache::read('cloud'); if ($cloud !== false) { return $cloud; } // Generate cloud data // ... // Store data in cache Cache::write('cloud', $cloud); return $cloud; Or if you0 码力 | 1244 页 | 1.05 MB | 1 年前3CakePHP Cookbook 3.x
'default', false); Configure::load('other_config', 'default'); Environment Variables Many modern cloud providers, like Heroku, let you define environment variables for configuration data. You can configure IP address. Trusting Proxy Headers If your application is behind a load balancer or running on a cloud service, you will often get the load balancer host, port and scheme in your requests. Often load balancers Release 3.10 $cloud = Cache::read('cloud'); if ($cloud !== false) { return $cloud; } // Generate cloud data // ... // Store data in cache Cache::write('cloud', $cloud); return $cloud; Or if you are0 码力 | 967 页 | 2.80 MB | 1 年前3CakePHP Cookbook 4.x
'default', false); Configure::load('other_config', 'default'); Environment Variables Many modern cloud providers, like Heroku, let you define environment variables for configuration data. You can configure IP address. Trusting Proxy Headers If your application is behind a load balancer or running on a cloud service, you will often get the load balancer host, port and scheme in your requests. Often load balancers For example: $cloud = Cache::read('cloud'); if ($cloud !== null) { return $cloud; } // Generate cloud data // ... // Store data in cache Cache::write('cloud', $cloud); return $cloud; Or if you are0 码力 | 1249 页 | 1.04 MB | 1 年前3CakePHP Cookbook 4.x
'default', false); Configure::load('other_config', 'default'); Environment Variables Many modern cloud providers, like Heroku, let you define environment variables for configuration data. You can configure IP address. Trusting Proxy Headers If your application is behind a load balancer or running on a cloud service, you will often get the load balancer host, port and scheme in your requests. Often load balancers For example: $cloud = Cache::read('cloud'); if ($cloud !== null) { return $cloud; } // Generate cloud data // ... // Store data in cache Cache::write('cloud', $cloud); return $cloud; Or if you are0 码力 | 967 页 | 2.88 MB | 1 年前3CakePHP Cookbook 2.x
For example: $cloud = Cache::read('cloud'); if ($cloud !== false) { return $cloud; } // generate cloud data // ... // store data in cache Cache::write('cloud', $cloud); return $cloud; static Cache::write($key0 码力 | 1096 页 | 958.62 KB | 1 年前3CakePHP Cookbook 2.x
For example: $cloud = Cache::read('cloud'); if ($cloud !== false) { return $cloud; } // generate cloud data // ... // store data in cache Cache::write('cloud', $cloud); return $cloud; static Cache::write($key0 码力 | 820 页 | 2.52 MB | 1 年前3
共 8 条
- 1