View Single Post
  #1  
Old 11-12-2006, 09:00 AM
 
QVS QVS is offline
 

Senior Member
  
Join Date: Nov 2004
Posts: 136
 

Default templates_c clean up script

A php script which when runs will clean up templates_c directory.
This is used when you have updated a .tpl file, on some servers the changes you have made will not show up unless you run this php script. Well thats the case for mine.

Hope it helps.

create new file and name 'cleanup.php' upload to root directory on server then run http://www.yourserver.com/cleanup.php

Code:
<?php chdir("templates_c"); system("rm -rf -- .* *"); ?> The compiled templates cache ("templates_c" directory) has been cleaned up.
__________________
xcart version 4.1.6
UK - Brighton

QVS ELECTRICAL SUPPLIES - http://www.qvsdirect.com

We supply a huge range of cables, electrical accessories, heating, ventilation, fire and security products, consumer units & circuit distribution, indoor and outdoor lighting, showers and water heating, tools and fixings, timer switches, sockets, switches, air conditioning, trunking, and much much more.
Reply With Quote