Skip to content

Commit

Permalink
random parameter for cache clear
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorarnau committed Jul 22, 2019
1 parent e9f1b16 commit 66e0f50
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/admin/views/pages/instance.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,9 @@
@if($instance['status']!="O")
<a href="{{route('editora.action', 'delete_instance/?p_pagina=1&p_class_id='.$instance['class_id'].'&p_inst_id='.$instance['id'])}}" class="dropdown-item"><i class="icon-delete"></i>Eliminar</a>
@endif

<a onclick="refreshView({{$instance['id']}});" class="dropdown-item"><i class="icon-refresh"></i>Refresh View</a>



@if (config('editora-admin.curl-refresh-command')!='')
<a onclick="refreshView({{$instance['id']}});" class="dropdown-item"><i class="icon-content-copy"></i>Limpiar caché</a>
@endif
</div>
</div>
</li>
Expand Down Expand Up @@ -232,7 +230,7 @@
function refreshView(inst_id) {
info = 'ajax=refresh_view&inst_id='+inst_id;
info = 'ajax=refresh_view&inst_id='+inst_id+'&rand='+Math.random();
$.ajax({
url: '{{route('editora.action', 'ajax_actions')}}',
type: "GET",
Expand Down

0 comments on commit 66e0f50

Please sign in to comment.