Skip to content

Commit b7c57a0

Browse files
andrehankeandrehanke
authored andcommitted
enhance: removed cache reference from .env
1 parent b9a254d commit b7c57a0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ return [
5959
'password' => env('DB_PASSWORD', 'password'),
6060
'charset' => 'utf8',
6161
'prefix' => '',
62-
'cache' => true // By default it caches on all connections, if you want some connection not remembered assign `false` (Recommended when modification is performed on tables frequently [development])
62+
'cache_tables' => true
6363
],
6464

6565
...
@@ -106,9 +106,8 @@ SYBASE_APPLICATION_CHARSET=UTF8
106106
## Configuring the cache
107107
As the library consults table information whenever it receives a request, caching can be used to avoid excessive queries
108108

109-
To use the cache, add the fields `SYBASE_CACHE_TABLES` and `SYBASE_CACHE_TABLES_TIME` to the `.env` file, see the following example:
109+
To use the cache, add the property `cache_tables` and `SYBASE_CACHE_TABLES_TIME` to the `.env` file, the default time for cache is 1 hour, see the following example:
110110
```dotenv
111-
SYBASE_CACHE_TABLES=true
112111
SYBASE_CACHE_TABLES_TIME=3600 # cache table information by `3600` seconds
113112
```
114113

0 commit comments

Comments
 (0)