Free Adult Tube-Video Script Forum

Full Version: CACHE OF BACKLINKSPIDER IS VERY BIG
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi from Spain,

I have some problems with backlinkspider.

tmp/blacklinkspider is very big, 800 Mb.

I can't enter via ftp because time out error,

I has too much files.

I have deleted all cached files en admin panel.

What can I do to delete some cached files?

Thanks
if you can not access this folder via ftp or control panel,
it may be possible to write a small php script to delete this folder.

here is an example:
Code:
<?
$dirname = 'tmp/backlinkspider/';
function delete_directory($dirname) {
   if (is_dir($dirname))
      $dir_handle = opendir($dirname);
   if (!$dir_handle)
      return false;
   while($file = readdir($dir_handle)) {
      if ($file != "." && $file != "..") {
         if (!is_dir($dirname."/".$file))
            unlink($dirname."/".$file);
         else
            delete_directory($dirname.'/'.$file);    
      }
   }
   closedir($dir_handle);
   rmdir($dirname);
   return true;
}
delete_directory($dirname);
?>

NOTE: I did not write that code, and I have not tested it.
You may have to specify a full domain path for the dirname variable.
It may also not accept a double folder name, so you might have to make it "backlinkspider" and place the code into the /tmp folder to initiate it, but due to htaccess, i dont know if that will be possible.

I recommend upgrading your script, we currently have disabled backlink spider as it is conflicting with googles new algorythm.
Ok, I'm deleting the files via ftp command line client.

I have upgrade the script.

Thanks a lot!!!
I set up a cron to delete those cache files ever few days. If you're in cPanel cron jobs, you can set up a regular time then the command would be something like

cd /home/USERNAME/public_html/tmp/backlinkspider && rm -f cache*

replace your user name in USERNAME
Reference URL's