Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

templates_c clean up script

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #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
  #2  
Old 11-12-2006, 01:19 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: templates_c clean up script

Ummm...this is already standard? Did your version not have a cleanup.php?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 11-12-2006, 03:19 PM
 
QVS QVS is offline
 

Senior Member
  
Join Date: Nov 2004
Posts: 136
 

Default Re: templates_c clean up script

mentioned the problem to x-cart and they told me to use that file. I didnt realise it was part of the install files, thought they had added it for me.
so was just passing the information on, apologies for the mixup.
__________________
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
  #4  
Old 11-12-2006, 04:23 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: templates_c clean up script

Just wanted to make sure I wasn't missing something
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:45 AM.

   

 
X-Cart forums © 2001-2020