Details
-
Improvement
-
Resolution: Fixed
-
High
-
4.5.0, 4.6.0, 4.7.0, 5.0, 5.1, 5.2-dev
-
None
Description
Expiring view cache using the 'Delete view cache from here' menu option ignores the [ContentSettings],CacheThreshold setting.
This can cause performance issues, and possibly even db deadlocks on sites with very large content trees and/or load.
Steps to reproduce:
- In site.ini, ContentSettings group, specify a low value for CacheThreshold (such as 25)
- Enable kernel-content-edit condition in debug.ini
- In the administration interface, click to view the root node; click class icon for the popup menu, and choose the 'Delete view cache from here' option.
Result:
The content objects will be cleared one by one, as can be verified in the debug log. sample:
[ Sep 04 2013 20:01:50 ] [192.168.56.1] count in nodeList <kernel-content-edit>:
2
[ Sep 04 2013 20:01:50 ] [192.168.56.1] count in nodeList <kernel-content-edit>:
2
[ Sep 04 2013 20:01:50 ] [192.168.56.1] count in nodeList <kernel-content-edit>:
3
[ Sep 04 2013 20:01:50 ] [192.168.56.1] count in nodeList <kernel-content-edit>:
2
[ Sep 04 2013 20:01:50 ] [192.168.56.1] count in nodeList <kernel-content-edit>:
2
[ Sep 04 2013 20:01:50 ] [192.168.56.1] count in nodeList <kernel-content-edit>:
5
... (repeated for the number of objects)
Expected Result:
The CacheThreshold should be met, and a 'global' expiry issued. sample debug:
[ Sep 04 2013 20:02:37 ] [192.168.56.1] count in nodeList <kernel-content-edit>: 2 [ Sep 04 2013 20:02:38 ] [192.168.56.1] count in nodeList <kernel-content-edit>: 44 [ Sep 04 2013 20:02:38 ] [192.168.56.1] eZContentCacheManager::clearObjectViewCacheArray: Expiring all view cache since list of nodes(44) exceeds site.ini\[ContentSettings]\CacheThreshold
Attachments
Issue Links
- relates to
-
EZP-19544 Showing/hiding a large number of objects generates fatal error.
- Closed
-
EZP-22664 View cache not cleared properly if the node count is above the threshold
- Closed
- testing discovered
-
EZP-21509 clearViewCache for subtree uses node column 'contentobject_id' removed since EZP-18195
- Closed