User tests: Successful: 0 Unsuccessful: 0
Issue: The Maintenance: Clear Cache
page does not display the correct number + size of cached files.
This PR corrects the Number of Files
on the Maintenance: Clear Cache
page.
When using Joomla's System - Page Cache
plugin, an /administrator/cache/page
folder with index.html
file is created. When you visit one page on the front-end, you will cache one page.
However, the Maintenance: Clear Cache
page shows 2 files under Number of Files
because it also counts the index.html
file (which is not a cached file). It's confusing to see that number.
System - Page Cache
pluginMaintenance: Clear Cache
counts 2 files.index.html
.You'll see too many cached files under Number of Files
(and Size) because it includes the index.html
:
You'll see the real number of cached files + size because the index.html
is not counted as cache anymore:
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
This pull request has been automatically rebased to 5.2-dev.
Title |
|
We create the index.html file because we don't want to have the files in the directory listed. So the index.html is not created as cached file. I think the PR is correct, even it doesn't makes a big difference.
Labels |
Added:
bug
PR-5.2-dev
|
I have tested this item ✅ successfully on 683a10f
We create the index.html file because we don't want to have the files in the directory listed. So the index.html is not created as cached file. I think the PR is correct, even it doesn't makes a big difference.
I remember the requirement to have index.html file in each folder was removed from long time ago, so I think the right solution if really needed would be not creating that file. Anyway, as you say, it doesn't makes a big difference, I don't really care if this PR is closed or merged.
We still need an index.html in any folder that would otherwise be distributed as an empty folder. The folder is not created on some systems if it is empty but in this case you are correct as these folders are not distributed so they do not need the index.html file, In other words the correct fix is not to create the file in the first place - not to exclude it from the count
I have tested this item ✅ successfully on 683a10f
Status | Pending | ⇒ | Ready to Commit |
RTC
Labels |
Added:
RTC
|
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-02-03 09:47:28 |
Closed_By | ⇒ | chmst |
This is not correct.
When you turn on the cache plugin a pages folder is not created.
When you visit a page on the site then the folder is created with an index.html and any other cache files
When you delete the cache using the system menu the entire cache folder is deleted. That includes the index.hmtl file. Therefore the number of cached files includes the index.html file