X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   templates_c clean up script (https://forum.x-cart.com/showthread.php?t=26549)

QVS 11-12-2006 09:00 AM

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.


balinor 11-12-2006 01:19 PM

Re: templates_c clean up script
 
Ummm...this is already standard? Did your version not have a cleanup.php?

QVS 11-12-2006 03:19 PM

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.

balinor 11-12-2006 04:23 PM

Re: templates_c clean up script
 
Just wanted to make sure I wasn't missing something :)


All times are GMT -8. The time now is 08:35 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.