User tests: Successful: Unsuccessful:
Custom cache realizations can shard the cached files by subfolder within a usual cache group folder for file-based cache storage.
"Maintenance: Clear Cache" displays 0 as "Number of Files" and "Size" in this case.
We can easily implement recursive count of files and respect the subfolders for better statistics.
Clearing a cache group with subfolders already works.
Enable Joomla caching with File handler.
Create folder /administrator/cache/test
and subfolders:
/administrator/cache/test/1
/administrator/cache/test/2
Create/copy any dummy files into these subfolders.
Open "Maintenance: Clear Cache", see test
Cache Group with 0 files and size.
See real number of files and size.
Please select:
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
Labels |
Added:
PR-5.4-dev
|
Title |
|
I have tested this item ✅ successfully on f7735c2
I have tested this successfully and with the Patch it does show 2 files for 27.72kb.
In case this is important, I would like to point out that I had 2 files one in folder 1 of 13kb and the other in folder 2 of 14.72kb and the BEFORE patch condition did show test folder - 1 file - 15kb and NOT 0 files as mentioned in the BEFORE test instructions.
Status | Pending | ⇒ | Ready to Commit |
RTC
I had 2 files one in folder 1 of 13kb and the other in folder 2 of 14.72kb and the BEFORE patch condition did show test folder - 1 file - 15kb and NOT 0 files as mentioned in the BEFORE test instructions
I assume the point (before applying this PR) is about sub-folders. Number and size for files in test/
are shown, but size 0 and number 0 is shown for files in sub-directories liketests/1/
. Tested it is working with number of files and overall size in sub-directories.
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-07-11 17:50:05 |
Closed_By | ⇒ | muhme | |
Labels |
Added:
RTC
|
I have tested this item ✅ successfully on f7735c2
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45686.