cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Grebnov (JIRA)" <>
Subject [jira] [Created] (CB-6178) Plugman does not cache downloaded plugins
Date Thu, 06 Mar 2014 09:28:42 GMT
Sergey Grebnov created CB-6178:

             Summary: Plugman does not cache downloaded plugins
                 Key: CB-6178
             Project: Apache Cordova
          Issue Type: Bug
          Components: Plugman
    Affects Versions: 3.3.0
         Environment: Windows, OSX
            Reporter: Sergey Grebnov
            Priority: Minor

It seems downloaded plugins are not cached so every time I install the same plugin to new
project it is downloaded from the web again.

I see, that .plugman/cache is always empty on Mac and Windows.
In registry.js I see the following logic. It tries to find existing plugin in .plugman/cache,
but downloads plugin to system temporary dir which is different (C:\Users\<username>\AppData\Local\Temp\)
function fetchPackage(info, cl) {
    var settings = module.exports.settings;
    var d = Q.defer();
    var cached = path.resolve(settings.cache,, info.version, 'package');
    if(fs.existsSync(cached)) {
    } else {
        var download_dir = path.join(os.tmpdir(),;
        shell.mkdir('-p', download_dir);

In my case:
cached dir: C:\Users\Sergei\.plugman\cache\org.apache.cordova.console\0.2.7\package
Donwload dir: C:\Users\Sergei\AppData\Local\Temp\org.apache.cordova.console 
And I don't see any logic where it puts it to cache after download.

This message was sent by Atlassian JIRA

View raw message