Small performance optimizations ( cache Id and request URL was made as indexed field in DB,  logic of saving cache was optimized)
Prefix variable was removed
Fixed building
Merge pull request #322 from Pitsko/master

Small performance optimizations