1. Clear Cache Button on Admin Panel

Clear Cache Button on Admin Panel

  |   2
Clear cache bottonClear cache botton

Add quick clear cache button on admin panel


Locate: /engine/skins/default.skin.php

<div class="action-nav-normal action-nav-line" style="display: inline-block;">
<div class="action-nav-button nav-small" style="width:180px;">
<a href="{$PHP_SELF}?mod=editnews&amp;action=list" class="tip" title="{$lang['edit_news']}">
<i class="icon-edit"></i>
<span class="triangle-button blue"><i class="icon-pencil"></i></span>

Add code below:
 <div class="action-nav-normal action-nav-line" style="display: inline-block;">
<div class="action-nav-button nav-small" style="width:150px;">
<a id="clrbtn" class="tip" title="{$lang['btn_clearcache']}">
<i class="icon-trash"></i>
<span class="triangle-button red"><i class="icon-remove"></i></span>

$skin_footer = <<<HTML
<!-- maincontent end -->

Add again:
<script type="text/javascript">
$('#clrbtn').click(function() {
$.get("engine/ajax/adminfunction.php?action=clearcache", function( data ){
$('#cachesize').html('0 b');
title: '{$lang[p_info]}',
text: data
return false;

  • I only tested on v10.2, should be work on earlier version
  • To change title, go to /Language/English/adminpanel.lng line 1115
Dear visitor, you are browsing our website as Guest.
We strongly recommend you to register and login to view hidden contents.



Comments 2

Commented By zasajt7 on December 14, 2014 (1:33 pm)
where I find that button manualy?
N/A 36Forum topics : 13Forum replies : 36Forum likes : 0
Commented By yorismith on December 14, 2014 (3:20 pm)
by default "Clear Smartcache" in located in your admin cp "http://site.com/admin.php" just scroll down the the bottom and it's located next to "Update" button, this tutorial is just telling to have this button in all admin pages
32 288Forum topics : 2Forum replies : 699Forum likes : 117

- Nothing comes free...
- A generous heart, kind speech, and compassion are the things which renew humanity
Information!Would you like to leave your comment? Please Login to your account to leave comments. Don't have an account? You can create a free account now.
DLEStarter Notice!Please note...Every hack and every module will get additional queries from your database and some hacks and some modules may result your server overload, so install only what you "need", remove any hacks and modules from your script when you don't need them, all hacks and modules appears in this website are not guaranteed by DLEStarter Team for your script security and compatibility, please read instruction carefully and use hacks and modules at your own risk...Thank you.