Jump to content
xt:Commerce Community Forum
Sign in to follow this  
Hame

Cronjobs Cache unf template_c

Recommended Posts

Haloo,

ich bin jetzt am probieren " cronjob automatisch starten". 

Ich bin kein PHP Programmierer und Scripte sind aus

http://forums.xt-commerce.com/topic/76375-cache-leeren-bzw-ausschalten/#comment-341692

mit xtcommerce Handbuch Cronjob erstellt, aber Verzeichnisse werden nicht geleert.

Template_c löschen

 <?php

$dir = @opendir ('../templates_c');

while (($entry = @readdir($dir)) !== false) {

if(substr($entry, 0, 2) == '%%') {

unlink('../templates_c/'.$entry);

}
echo 'Datei '.$entry.'<br/>';

}

@closedir('../templates_c');

 

Cache löschen

?>

 <?php

 

$dir = @opendir ('../cache');

while (($entry = @readdir($dir)) !== false) {

if(substr($entry, 0, 3) == '_xt') {

unlink('../cache/'.$entry);

}

echo 'Datei '.$entry.'<br/>';

}

@closedir('../cache');

 

?>

Scripte habe ich in xampp\htdocs\shop2\xtCore\cronjobs kopiert.

dann

1.PNG.0fcf984fbe923b0db68b02b2739af4c5.P

2.PNG.0444a4cd3f221456074fffcdb02de007.P

Was mache ich falsch?

 

Danke

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...