Commit graph

8 commits

Author SHA1 Message Date
Stanislav Malyshev
5e2376eb94 Allow requiring cache size for page props
Needed for batch processing where size of the batch is known
and the batch should fit in cache.

Change-Id: Ib6d6e6ab7e12788c934cd0e973bc35e133aeccbb
2016-08-18 12:57:34 -07:00
Kunal Mehta
6e9b4f0e9c Convert all array() syntax to []
Per wikitech-l consensus:
 https://lists.wikimedia.org/pipermail/wikitech-l/2016-February/084821.html

Notes:
* Disabled CallTimePassByReference due to false positives (T127163)

Change-Id: I2c8ce713ce6600a0bb7bf67537c87044c7a45c4b
2016-02-17 01:33:00 -08:00
Timo Tijhof
7f01755fdf CacheLRU: Simplify >0 assertion and remove verbose inline comment
* Consistently refer to above zero as '> 0', not ">= 1" or "not <= 0".

* Remove superfluous comment that say what ping() does.

Change-Id: I25d276faa555e02feb99e656eb9cb7071f8205c0
2015-10-20 03:19:17 +01:00
daniel
7081228214 Start using the Assert helper class for checking parameters.
This introduces https://github.com/wmde/Assert as a dependency,
as discussed in the RFC T91071.

This change uses assertions to check some parameters in some places,
to showcase the main intended use case for assertions in MediaWiki.

Bug: T91071
Change-Id: I93ac39b7c146f10532e37b51d973b59b9c424b2f
2015-05-11 17:54:07 +00:00
Timo Tijhof
9b62a6ad80 ProcessCacheLRU: Clean up doc comments and add @covers tags to tests
Change-Id: Ie7e8f4b31d89fc0bee748c03d94cb54b23ab4f83
2015-01-29 12:08:27 -08:00
Aaron Schulz
149e397fbe Improved timestamp precision in ProcessCacheLRU
Change-Id: I42f27df4ec9f944bd308e13eb832d84f1d9492a9
2014-09-25 12:04:09 -07:00
Aaron Schulz
d52a559fba Make room for preloadFileStat() call in FileBackend::doOperationsInternal
Change-Id: I60f71155abcf7f69423639b10ec301ac192df728
2014-04-18 17:02:19 -07:00
Aaron Schulz
400e4848ec Moved ProcessCacheLRU to /libs
Change-Id: I7052d04d9847f0310c1e62bd66365c813fddeab5
2014-03-16 16:32:34 -07:00
Renamed from includes/cache/ProcessCacheLRU.php (Browse further)