Skip to content

Commit df922b2

Browse files
committed
update doctrine cache
1 parent d2683f4 commit df922b2

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -416,4 +416,6 @@
416416
- [APISIX](src/OpenResty/apisix.md) APISIX is a Cloud-Native Microservices API Gateway
417417
70. [PostgreSQL](src/PostgreSQL/README.md)
418418
- [PostgreSQL for mac](src/PostgreSQL/mac.md) mac下安装及使用
419-
71. [ICU4C VS ICU4J](src/ICU/README.md)
419+
71. [ICU4C VS ICU4J](src/ICU/README.md)
420+
72. [VS Code](src/VSCode/README.md)
421+
- [go 环境配置](src/VSCode/go.md)

src/VSCode/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
## VS Code配置
2+
- [go 环境配置](go.md)

src/VSCode/go.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
## go 环境配置
2+
- 安装插件报错
3+
4+
package golang.org/x/tools/imports: directory "src/golang.org/x/tools/imports" is not using a known version control system
5+
解决办法:src/golang.org/x 下的tools/lint从github获取的最新版本(注意一定要是git clone),
6+

src/symfony/Doctrine/DoctrineCache.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@
5151
])
5252
->getQuery()
5353
->useQueryCache(true) // query cache
54-
->useResultCache(true, 86400, 'left_nav') //result cache
54+
->useResultCache(true, 86400, sprintf('left_nav_%s', implode('_' , $ids)) //result cache
5555
->getResult();
56-
}
56+
}
57+
- 更新或者删除时,让缓存失效
58+
59+
// in Repository
60+
$this->_em->getConfiguration()->getResultCacheImpl()->delete($cacheId);

0 commit comments

Comments
 (0)