What is web cache ?

A web cache is an technology for the temporary storage of web documents, to reduce server lag.Caching is used to make subsequent requests faster

Share on Google+Share on FacebookTweet about this on TwitterEmail this to someone
 
 

Display hidden files in cpanel

Step 1 : Login to your cpanel

Step 2 : Find File Manager under Files section and click on it

Step 3 : Find Setting button at top right corner

Step 4 : A popup will appear after click on setting button

Step 5 : Mark checked on Show Hidden Files (dotfiles) option in popup

 

Share on Google+Share on FacebookTweet about this on TwitterEmail this to someone
 

Get current full url in php


$currentPage =  'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; 
 
If you want to check that ssl is enable or not then use below code
 
$currentPage =  (isset($_SERVER['HTTPS']) ? "https" : "http") . "://". $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];

Share on Google+Share on FacebookTweet about this on TwitterEmail this to someone
 

Clear chache in smarty

For Smarty version 2

$smarty->clear_all_cache();

For Smarty version 3

$smarty->clearAllCache();
Share on Google+Share on FacebookTweet about this on TwitterEmail this to someone