Free Adult Tube-Video Script Forum
CACHE OF BACKLINKSPIDER IS VERY BIG - Printable Version

+- Free Adult Tube-Video Script Forum (http://freeadultscript.com/forum)
+-- Forum: My Category (/forumdisplay.php?fid=1)
+--- Forum: BacklinkSpider.net (/forumdisplay.php?fid=9)
+--- Thread: CACHE OF BACKLINKSPIDER IS VERY BIG (/showthread.php?tid=1817)



CACHE OF BACKLINKSPIDER IS VERY BIG - xaxuke - 13-12-2011 12:09 AM

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


RE: CACHE OF BACKLINKSPIDER IS VERY BIG - Punktured - 13-12-2011 12:33 AM

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.


RE: CACHE OF BACKLINKSPIDER IS VERY BIG - xaxuke - 13-12-2011 12:50 AM

Ok, I'm deleting the files via ftp command line client.

I have upgrade the script.

Thanks a lot!!!


RE: CACHE OF BACKLINKSPIDER IS VERY BIG - kpness - 01-07-2012 06:44 PM

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