1
General Support / Re: Help with Permissions Breakdown
« Last post by abolabo on Today at 08:54:07 AM »just try to set 755 for directory home/heartpetsupply/public_html/admin/system/ and it's subdirectories via cPanel fileManager
Thank you, I had made a significant contribution, however I never received any type of receipt, which is beneficial for my business tracking. If and when receipts are automatically sent to contributors after they contribute, I will again contribute. Having said that I appreciate all your work and for all of those in the open source world.
Not all of us are dev's. There are many apps out there that provide both an easy upgrade, and a strong defense. We know because we have used them and upgrades are secure and seamless. These Abantecart upgrades have become intimidating and that should not happen. We just want to have the best products to present to our customers.
Hoping this message still gets some recognition. As this post is relevant to the problem we have with inodes filling up on our hosting site. However the script in this message is not a link just text. Anyone know where we can find this clear_cache.sh ?Hello.
Thank You,
<?php
// File: /home/public_html/clean_cache.php
$cacheDir = __DIR__ . '/system/cache';
// Ensure the directory exists
if (!is_dir($cacheDir)) {
exit("Cache directory not found: $cacheDir\n");
}
$files = scandir($cacheDir);
foreach ($files as $file) {
// Keep index.html and skip . / ..
if ($file === '.' || $file === '..' || $file === 'index.html') {
continue;
}
$filePath = $cacheDir . '/' . $file;
if (is_file($filePath)) {
unlink($filePath);
} elseif (is_dir($filePath)) {
deleteDirectory($filePath);
}
}
// Recursive deletion function
function deleteDirectory($dir) {
$items = array_diff(scandir($dir), ['.', '..']);
foreach ($items as $item) {
$path = "$dir/$item";
is_dir($path) ? deleteDirectory($path) : unlink($path);
}
return rmdir($dir);
}
*/6 * * * * /usr/bin/php /home/public_html/clean_cache.php >/dev/null 2>&1