X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   clean.php and "Clear templates cache" do nothing (https://forum.x-cart.com/showthread.php?t=4916)

AKR 10-23-2003 01:19 PM

clean.php and "Clear templates cache" do nothing
 
i have version 3.4.8. and i've tried both of these and i'm still not seeing my changes. i used clean.php, changed the templates_c folder and made a new one (setting 777), and when i view my page after that, it's the same. this is driving me nutz. any help?

Gibberish 10-23-2003 02:28 PM

does it give you an error or anything?

Here is my cleanup.php, I have used it twice so I know it works. Backup your cleanup.php and copy and paste this code.

Just incase something is bugged with yours.

<?
chdir("templates_c");
system("rm -rf -- .* *");
?>
The compiled templates cache ("templates_c" directory) has been cleaned up.

AKR 10-23-2003 02:37 PM

i took a look and it says exactly what yours does. dunno what's going on.

DogByteMan 10-23-2003 05:41 PM

What are you expecting it to do???

AKR 10-23-2003 09:00 PM

wha? cleanup.php?

B00MER 10-24-2003 03:41 AM

sometimes php doesn't have access to such a system call, especially if your on a windows server, simply delete the entire folder yourself, and let x-cart/smarty regenerate the templates_c folder for you ;)

AKR 10-25-2003 12:06 AM

when i do that, i just get this:

Can't write template cache in the directory: /home/bakeme2/public_html/xcart/templates_c.
Please check if it exists, and have writable permissions.

it won't create one on it's own.

B00MER 10-25-2003 05:27 AM

then recreate the dir.

mkdir templates_c
chmod 777 templates_c

;)

AKR 10-25-2003 01:18 PM

mkdir templates_c ? is that a command i'm supposed to give somewhere? sorry, i'm new to this stuff.

B00MER 10-25-2003 01:40 PM

Just create the directory with FTP, and set the CHMOD permissions to 777


All times are GMT -8. The time now is 12:22 PM.

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