Thread: [PI] How can i change the cache path ? [PI]

Results 1 to 5 of 5
  1. #1 [PI] How can i change the cache path ? [PI] 
    Extreme Donator


    Join Date
    May 2010
    Posts
    1,344
    Thanks given
    961
    Thanks received
    132
    Rep Power
    216
    READ THE TITLE
     

  2. #2  
    Banned

    Join Date
    Oct 2010
    Posts
    716
    Thanks given
    82
    Thanks received
    131
    Rep Power
    0
    Signlink.java
     

  3. #3  
    Extreme Donator


    Join Date
    May 2010
    Posts
    1,344
    Thanks given
    961
    Thanks received
    132
    Rep Power
    216
    i tried changing the path in signlink class

    it always trying to download cache
     

  4. #4  
    Member
    Join Date
    Mar 2009
    Posts
    624
    Thanks given
    49
    Thanks received
    30
    Rep Power
    0
    If you want to change where it downloads the cache from try CacheDownloader.java, if not then it should be in Signlink.java
     

  5. #5  
    Registered Member
    thim slug's Avatar
    Join Date
    Nov 2010
    Age
    28
    Posts
    4,132
    Thanks given
    1,077
    Thanks received
    1,137
    Rep Power
    5000
    It's hard to provide information when you provide little information regarding your problem. Are you trying to change the domain in which the cache is downloaded from? That would be cachedownloader, if you're trying to change where the client gets the cache, signlink class,
    Code:
        public static String findcachedir() {
            String as[] = {"C:/"};
            if(storeid < 32 || storeid > 34)
                storeid = 32;
            String s = "Your cache name";
            for(int i = 0; i < as.length; i++)
                try {
                    String s1 = as[i];
                    if(s1.length() > 0) {
                        File file = new File(s1);
                        if(!file.exists())
                            continue;
                    }
                    File file1 = new File(s1 + s);
                    if(file1.exists() || file1.mkdir())
                        return s1 + s + "/";
                }
                catch(Exception _ex) { }
            return null;
        }
    Simple enough method, just took it out of a webclient ready client.
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Change path' for Users.
    By Haskell Curry in forum Application Development
    Replies: 8
    Last Post: 01-01-2011, 10:34 PM
  2. [614] Changing cache Path -client sided
    By Ninja assassin in forum Tutorials
    Replies: 16
    Last Post: 10-09-2010, 08:22 PM
  3. 562 Change Cache Location
    By PieRGud in forum Help
    Replies: 0
    Last Post: 09-22-2009, 12:21 AM
  4. [req] How do i change home path[req]
    By agent str in forum Tutorials
    Replies: 3
    Last Post: 02-04-2008, 01:26 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •