CakePHP Cookbook 2.x
some reason CakePHP can’t write to that directory, you’ll see warnings and uncaught exceptions that cache data cannot be written. Creating the Blog Database Next, let’s set up the underlying database for org/wiki/Access_control_list] Data sanitization Flexible caching [https://en.wikipedia.org/wiki/Web_cache] Localization Works from any web site directory, with little to no Apache [https://httpd.apache.org/] referring URLs to local server. Controller::disableCache() Used to tell the user’s browser not to cache the results of the current request. This is different than view caching, covered in a later chapter0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 2.x
some reason CakePHP can’t write to that directory, you’ll see warnings and uncaught exceptions that cache data cannot be written. 4 https://git-scm.com/ 2 Chapter 1. Getting Started CakePHP Cookbook Documentation system 33 https://en.wikipedia.org/wiki/Access_control_list 34 https://en.wikipedia.org/wiki/Web_cache 35 https://httpd.apache.org/ 36 https://en.wikipedia.org/wiki/Model-view-controller 38 Chapter 3 referring URLs to local server. Controller::disableCache() Used to tell the user’s browser not to cache the results of the current request. This is different than view caching, covered in a later chapter0 码力 | 820 页 | 2.52 MB | 1 年前3
CakePHP Cookbook Documentation 5.xHeaders Setting the Body Setting the Character Set Interacting with Browser Caching Fine Tuning HTTP Cache Setting Cookies Setting Cross Origin Request Headers (CORS) Common Mistakes with Immutable Responses Schema System Schema Cache Tool Caching Cache Configuring Cache Engines Cache::setConfig Engine Options FileEngine Options RedisEngine Options MemcacheEngine Options Configuring Cache Fallbacks Removing Removing Configured Cache Engines Writing to a Cache Cache::write Writing Multiple Keys at Once Atomic writes Read Through Caching Reading From a Cache Cache::read Reading Multiple Keys at Once Deleting0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook Documentation 5.x. . . 323 13 Caching 505 Configuring Cache Engines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 506 Writing to a Cache . . . . . . . . . . . . . . . . . . . . . . . . . . . . 509 Reading From a Cache . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 511 Deleting From a Cache . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 513 Using Cache to Store Counters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 513 Using Cache to Store Common Query Results . . . . .0 码力 | 848 页 | 2.53 MB | 1 年前3
CakePHP Cookbook 3.x
. . . 465 13 Caching 633 Configuring Cache Engines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 634 Writing to a Cache . . . . . . . . . . . . . . . . . . . . . . . . . . . . 637 Reading From a Cache . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 638 Deleting From a Cache . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 640 Using Cache to Store Counters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 641 Using Cache to Store Common Query Results . . . . .0 码力 | 967 页 | 2.80 MB | 1 年前3
CakePHP Cookbook 3.x
Headers Setting the Body Setting the Character Set Interacting with Browser Caching Fine Tuning HTTP Cache Setting Cookies Setting Cross Origin Request Headers (CORS) Common Mistakes with Immutable Responses Data Saving Data Deleting Data Associations - Linking Tables Together Behaviors Schema System Schema Cache Shell AuthComponent Suggested Reading Before Continuing Authentication Choosing an Authentication Configuring Cache Engines Engine Options FileEngine Options RedisEngine Options MemcacheEngine Options Configuring Cache Fallbacks Removing Configured Cache Engines Writing to a Cache Writing Multiple0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook 4.x
Headers Setting the Body Setting the Character Set Interacting with Browser Caching Fine Tuning HTTP Cache Setting Cookies Setting Cross Origin Request Headers (CORS) Common Mistakes with Immutable Responses Data Saving Data Deleting Data Associations - Linking Tables Together Behaviors Schema System Schema Cache Tool AuthComponent AuthComponent Suggested Reading Before Continuing Authentication Choosing an Caching Cache Configuring Cache Engines Cache::setConfig Engine Options FileEngine Options RedisEngine Options MemcacheEngine Options Configuring Cache Fallbacks Removing Configured Cache Engines Writing0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook 4.x
. . . 421 13 Caching 605 Configuring Cache Engines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 606 Writing to a Cache . . . . . . . . . . . . . . . . . . . . . . . . . . . . 609 Reading From a Cache . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 611 Deleting From a Cache . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 613 Using Cache to Store Counters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 613 Using Cache to Store Common Query Results . . . . .0 码力 | 967 页 | 2.88 MB | 1 年前3
Falcon v3.0.0 DocumentationDEFAULT_UUID_GENERATOR Let’s complete the Redis cache component by implementing two more middleware methods, in addition to process_startup(). Create a cache.py module containing the following code. import PREFIX = 'asgilook:' INVALIDATE_ON = frozenset({'DELETE', 'POST', 'PUT'}) CACHE_HEADER = 'X-ASGILook-Cache' TTL = 3600 def __init__(self, config): self._config = config _deserialize_response(resp, data) resp.set_header(self.CACHE_HEADER, 'Hit') else: resp.set_header(self.CACHE_HEADER, 'Miss') async def process_response(self, req, resp, resource0 码力 | 1055 页 | 739.30 KB | 1 年前3
Falcon v3.0.1 DocumentationDEFAULT_UUID_GENERATOR Let’s complete the Redis cache component by implementing two more middleware methods, in addition to process_startup(). Create a cache.py module containing the following code. import PREFIX = 'asgilook:' INVALIDATE_ON = frozenset({'DELETE', 'POST', 'PUT'}) CACHE_HEADER = 'X-ASGILook-Cache' TTL = 3600 def __init__(self, config): self._config = config _deserialize_response(resp, data) resp.set_header(self.CACHE_HEADER, 'Hit') else: resp.set_header(self.CACHE_HEADER, 'Miss') async def process_response(self, req, resp, resource0 码力 | 1058 页 | 741.59 KB | 1 年前3
共 79 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8













