Description
Hello. I have a problem with cache on Magento 2.1.x
Accourding my hosting provider services, the script of Magento 2.1.x more bigger and bigger size day by day. For example, last week the size of all files and folders is 400 MB, 2 days later 500 MB, and now 2 GB, and may be in a month it size approximately 32 GB.
This is problem for me when I need to upgrade to the latest version of Magento 2.1.x or the latest version theme, I need to backup all files but the system is very slow.
Preconditions
Make a backup files for Magento system
Steps to reproduce
- Open Cpanel, then Files Explorer
- Make a backup file for Magento system such as ZIP files.
Expected result
- The backup file successful such as magento.zip
Actual result
- Long time for result zip files.
- Or If unsuccesful there is only file with something like this: zzYYhMmB, xxTgBhM
According to my hosting service support, there is a bigger files on : /home/xxxxx/public_html/var/page_cache day by day.
I wish, next version, Magento can fix this problem.
Here is the answer from my Hosting:
Hi there,
In my last reply I showed where most the data was used which is here:
And in /home/xxxx/public_html/var/page_cache
There is 16G used:
978M ./mage--5
984M ./mage--7
993M ./mage--9
1001M ./mage--b
979M ./mage--8
985M ./mage--f
983M ./mage--1
1000M ./mage--a
982M ./mage--2
992M ./mage--6
994M ./mage--3
1004M ./mage--e
1000M ./mage--4
1019M ./mage--0
987M ./mage--d
981M ./mage--c
90M ./mage-tags
16G .
Note these are page cache files and can be deleted, it seems your script does not clean up cache files and the size of the folder is growing constantly.