Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CACHE OF BACKLINKSPIDER IS VERY BIG
13-12-2011, 12:09 AM
Post: #1
CACHE OF BACKLINKSPIDER IS VERY BIG
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
Find all posts by this user
Quote this message in a reply
13-12-2011, 12:33 AM
Post: #2
RE: CACHE OF BACKLINKSPIDER IS VERY BIG
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.

Custom HTML/CSS/PHP
http://theorderofindividualacceptance.co...p.php?id=1
Find all posts by this user
Quote this message in a reply
13-12-2011, 12:50 AM
Post: #3
RE: CACHE OF BACKLINKSPIDER IS VERY BIG
Ok, I'm deleting the files via ftp command line client.

I have upgrade the script.

Thanks a lot!!!
Find all posts by this user
Quote this message in a reply
01-07-2012, 06:44 PM
Post: #4
RE: CACHE OF BACKLINKSPIDER IS VERY BIG
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
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: