diff --git a/library/pulse/script/cache.rb b/library/pulse/script/cache.rb
index <HASH>..<HASH> 100644
--- a/library/pulse/script/cache.rb
+++ b/library/pulse/script/cache.rb
@@ -1,14 +1,16 @@
 # encoding: utf-8
 
 module Pulse
-  class Cache
-    def initialize script
-      @script = script
-    end
+  class Script
+    class Cache
+      def initialize script
+        @script = script
+      end
 
-  private
-    def path
-      File.expand_path $0
+    private
+      def path
+        "#{File.expand_path $0}/cache/#{@script.name}_#{@index}"
+      end
     end
   end
 end
Fixed namespacing of script cache and corrected Cache#path