Login   Register  
PHP Classes
elePHPant
Icontem

File: ClearCacheCommand.txt

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of yanghisun  >  Page Self Cacher  >  ClearCacheCommand.txt  >  Download  
File: ClearCacheCommand.txt
Role: ???
Content type: text/plain
Description: Commands to clear cache
Class: Page Self Cacher
Author: By
Last change:
Date: 12 years ago
Size: 609 bytes
 

Contents

Class file image Download
#!/bin/bash
#you must login as root or SU to do these
#
#BTW,Linux will autoDelete temp files older than 10 days old,
#so maybe these commands are not nessesary
#
#for windows, delete all files in "cache"(maybe D:/Apache/tmp/cache) folder
#
#CAUTION: Don't place this file under your cgi-bin!
#CAUTION: Don't place this file under your cgi-bin!
#CAUTION: Don't place this file under your cgi-bin!
#CAUTION: Don't place this file under your cgi-bin!
#CAUTION: Don't place this file under your cgi-bin!

rm /tmp/cache -fr
mkdir /tmp/cache -fr
chown nobody:nobody /tmp/cache
chmod 700 /tmp/cache