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

clean.php and "Clear templates cache" do nothing

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-23-2003, 01:19 PM
 
AKR AKR is offline
 

eXpert
  
Join Date: Oct 2003
Location: the edge of insanity
Posts: 233
 

Default 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?
Reply With Quote
  #2  
Old 10-23-2003, 02:28 PM
 
Gibberish Gibberish is offline
 

Senior Member
  
Join Date: Sep 2003
Posts: 182
 

Default

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.
Reply With Quote
  #3  
Old 10-23-2003, 02:37 PM
 
AKR AKR is offline
 

eXpert
  
Join Date: Oct 2003
Location: the edge of insanity
Posts: 233
 

Default

i took a look and it says exactly what yours does. dunno what's going on.
Reply With Quote
  #4  
Old 10-23-2003, 05:41 PM
  DogByteMan's Avatar 
DogByteMan DogByteMan is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 833
 

Default

What are you expecting it to do???
__________________
Dedicated Server provided by EWD Hosting
X-Cart version 4.1.12
PHP 5.3.2
MySQL server 5.0.87-community
Operation system Linux
Perl 5.008008
dogbytecomputer.com
Reply With Quote
  #5  
Old 10-23-2003, 09:00 PM
 
AKR AKR is offline
 

eXpert
  
Join Date: Oct 2003
Location: the edge of insanity
Posts: 233
 

Default

wha? cleanup.php?
Reply With Quote
  #6  
Old 10-24-2003, 03:41 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

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
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #7  
Old 10-25-2003, 12:06 AM
 
AKR AKR is offline
 

eXpert
  
Join Date: Oct 2003
Location: the edge of insanity
Posts: 233
 

Default

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.
Reply With Quote
  #8  
Old 10-25-2003, 05:27 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

then recreate the dir.

mkdir templates_c
chmod 777 templates_c

__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #9  
Old 10-25-2003, 01:18 PM
 
AKR AKR is offline
 

eXpert
  
Join Date: Oct 2003
Location: the edge of insanity
Posts: 233
 

Default

mkdir templates_c ? is that a command i'm supposed to give somewhere? sorry, i'm new to this stuff.
Reply With Quote
  #10  
Old 10-25-2003, 01:40 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

Just create the directory with FTP, and set the CHMOD permissions to 777
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


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 07:16 AM.

   

 
X-Cart forums © 2001-2020