File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 13
13
* This can improve performance by skipping validation for known-good query, schema, and rules combinations.
14
14
* You are responsible for defining how cache keys are computed.
15
15
*
16
+ * Some things to keep in mind when generating keys:
17
+ * - PHP's `serialize` method is fast, but can't handle certain structures such as closures.
18
+ * - If your `schema` does include closures or is quite large and complex, consider
19
+ * using some kind of build-time version number or other environment variable.
20
+ * - Keep in mind that there are internal `rules` that are applied in addition to any you pass in,
21
+ * and it's possible these may shift or expand as the library evolves, so it might make sense
22
+ * to include the library version number in your keys.
23
+ *
16
24
* @see PsrValidationCacheAdapter for a toy implementation.
17
25
*/
18
26
interface ValidationCache
You can’t perform that action at this time.
0 commit comments