mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-22 07:52:29 +03:00
Disable cache busting on debug mode.
This commit is contained in:
parent
5ae5719806
commit
8081e8ff9f
1 changed files with 3 additions and 1 deletions
|
@ -25,5 +25,7 @@
|
|||
function asset_url($uri = '', $protocol = NULL) {
|
||||
$ci =& get_instance();
|
||||
|
||||
return base_url($uri . '?' . $ci->config->item('cache_busting_token'), $protocol);
|
||||
$cache_busting_token = !Config::DEBUG_MODE ? '?' . $ci->config->item('cache_busting_token') : '';
|
||||
|
||||
return base_url($uri . $cache_busting_token, $protocol);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue