Method: Wpxf::Cli::ModuleCache#rebuild_cache

Defined in:
lib/wpxf/cli/module_cache.rb

#rebuild_cacheObject



44
45
46
47
48
49
50
51
52
53
54
55
# File 'lib/wpxf/cli/module_cache.rb', line 44

def rebuild_cache
  print_warning 'Refreshing the module cache...'

  Wpxf::Models::Module.truncate
  Wpxf.load_custom_modules

  create_module_models 'exploit'
  create_module_models 'auxiliary'

  refresh_version_log
  reset_context_stack
end