����JFIF��x�x����'
Server IP : 66.29.137.217 / Your IP : 3.147.72.31 Web Server : LiteSpeed System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : gltevjme ( 1095) PHP Version : 7.0.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/gltevjme/ideyshare.name.ng/app/views/admin/ |
Upload File : |
{% extends "admin/partial/layout_logged_in.html.twig" %} {% block title %}Purge Application Cache{% endblock %} {% block selected_page %}configuration{% endblock %} {% block selected_sub_page %}configuration{% endblock %} {% block body %} <script> function purgeApplicationCache(serverId) { // if button disabled, skip if($('#PurgeBtn'+serverId).attr('disabled') === 'disabled') { return; } // disable button disablePurgeButton(serverId); // send request to purge cache $.ajax({ type: "POST", url: "{{ ADMIN_WEB_ROOT }}/ajax/purge_application_cache_process/"+serverId, data: {}, dataType: 'json', success: function (json) { // disable button enablePurgeButton(json.serverId); if (json.error == true) { showError(json.msg); } else { showSuccess(json.msg); } }, error: function (XMLHttpRequest, textStatus, errorThrown) { showError(XMLHttpRequest.responseText); } }); } function disablePurgeButton(serverId) { $('#PurgeBtn'+serverId).attr('disabled', true); } function enablePurgeButton(serverId) { $('#PurgeBtn'+serverId).attr('disabled', false); } </script> <!-- page content --> <div class="right_col" role="main"> <div class=""> <div class="page-title"> <div class="title_left"> <h3>{{ block('title') }}</h3> </div> </div> <div class="clearfix"></div> {{ msg_page_notifications|raw }} <div class="row"> <div class="col-md-12 col-sm-12 col-xs-12"> <div class="x_panel updateCheckerWrapper"> <div class="x_title"> <h2>Cache</h2> <div class="clearfix"></div> </div> <div class="x_content"> <p>Use this page to purge any application cache from the /cache/ folder. This includes any Twig templating cache (if you're making html changes) and routing cache. You should also purge the cache when uploading new plugins to any file servers.</p> <p>Application caching will be disabled if the "Enable Application Cache" option in <a href="{{ ADMIN_WEB_ROOT }}/setting_manage?filterByGroup=Site%20Options">site settings</a> is set to "no". (Currently: "{{ SITE_CONFIG_ENABLE_APPLICATION_CACHE }}")</p> </div> <table class="table table-striped table-only-border"> <thead> <tr> <th>Server Label</th> <th>Server Type</th> <th>Cache Folder</th> <th class="text-center">Action</th> </tr> </thead> <tbody> {% for server in servers %} <tr> <td><strong>{{ server.serverLabel }}</strong></td> <td>{{ server.serverType|title }}</td> <td>{{ server.getCacheFolderPath() }}</td> <td class="text-center"><a id="PurgeBtn{{ server.id }}" href="#" class="btn btn-primary" onclick="purgeApplicationCache({{ server.id }}); return false;">{{ t('purge_application_cache_purge_now', 'Purge Now') }}</a></td> </tr> {% endfor %} </tbody> </table> </div> </div> </div> </div> </div> {% endblock %}