2014-06-07, 02:24
(2014-06-06, 23:02)kikinjo Wrote: Can u in short words please say what are you using for proxy / webcache, and for what protocols ?
I spent lots of time trying to find good solution for local cache for clients since my Mysql DB is on remote server and i also use Music DB. Running 8 clients on windows and main storage / DB on linux server.
Tried squid proxy for windows, but its not good, since https caching is not possible. Any info would be good. Thanx.
Hey,
The proxy is used for caching posters, fanart, etc. Basically anything that needs scraping from the internet.
The reason im using it is because i was previously using local .nfo, .tbn and .jpg files which was causing unnecessary hard drive spin ups on my NAS.
XBMC Forum
Lime-Tech Forum
I always document my server setups so here is a quick exert from my evernote.
Install Squid Proxy Server
sudo apt-get install squid
sudo nano /etc/squid3/squid.conf
Find: http_access deny all
Change: http_access allow all
Find: # cache_dir ufs /var/spool/squid3 100 16 256
Change: cache_dir ufs /var/spool/squid3 5120 16 256
sudo service squid3 restart
Basically i just installed squid, allowed access to all, setup the cache directory to 5GB.
To check how big your cache folder is i use this simple command: sudo du -sh /var/spool/squid3
The following is from the squid manual which outlines cache_dir:
Code:
==== The ufs store type ====
"ufs" is the old well-known Squid storage format that has always
been there.
Usage:
cache_dir ufs Directory-Name Mbytes L1 L2 [options]
'Mbytes' is the amount of disk space (MB) to use under this
directory. The default is 100 MB. Change this to suit your
configuration. Do NOT put the size of your disk drive here.
Instead, if you want Squid to use the entire disk drive,
subtract 20% and use that value.
'L1' is the number of first-level subdirectories which
will be created under the 'Directory'. The default is 16.
'L2' is the number of second-level subdirectories which
will be created under each first-level directory. The default
is 256.
This is how i have my XBMC clients setup:

Then if you wait a second and go to system info and it still says connected, you know it works.

I'm not sure if its the absolute best solution but it seems to work.