Skip to content

Commit

Permalink
Fix calls to z_sites_dispatcher:update_dispatchinfo/0
Browse files Browse the repository at this point in the history
(cherry picked from commit 240b601)
  • Loading branch information
Arjan Scherpenisse committed Jan 25, 2012
1 parent 2c899e5 commit 5a3828b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/mod_development/z_code_reloader.erl
Expand Up @@ -148,7 +148,7 @@ code_change(_OldVsn, State, _Extra) ->
reload_all() ->
case reload_loaded_modules() of
[] ->
z_sites_manager:update_dispatchinfo(),
z_sites_dispatcher:update_dispatchinfo(),
[ z_module_indexer:reindex(C) || C <- z_sites_manager:get_site_contexts() ],
ok;
_ ->
Expand Down
4 changes: 2 additions & 2 deletions src/support/z.erl
Expand Up @@ -64,8 +64,8 @@ m() ->

%% @doc Reset all caches, reload the dispatch rules and rescan all modules.
flush() ->
[ flush(C) || C <- z_sites_manager:get_site_contexts() ],
z_sites_manager:update_dispatchinfo().
[ flush(C) || C <- z_sites_manager:get_site_contexts() ],
z_sites_dispatcher:update_dispatchinfo().

flush(Context) ->
z_depcache:flush(Context),
Expand Down

0 comments on commit 5a3828b

Please sign in to comment.