By: Emil
Date: 2006-11-26
Time: 04:39
|
Delete cache filesHi, Skrol,
I am using cache plug-in, and I got several cache files like: cache_topic1_page1.tmp cache_topic1_page2.tmp cache_topic2_page1.tmp....etc. However, I have no idea how many pages will be generated for topic one in the future. if i just want to remove all topic1's cache file, I have to remove all cache files. I don't want to create many folders for each topic. can I use the '*' for the cache id to delete those topic1's cache files? like: "topic1*"? I tried before, it doesn't work... is there any ways to play with it? |
|
By: TomH
Date: 2006-11-26
Time: 16:44
|
Re: Delete cache filesHello,
One way that I use to do clean up is to purge all cached files that have gotten old past a certain amount of time. Using a function to sweep the cache directory - I then know that odl files are killed and content pages will be refreshed with updated/edited content the next time they are requested. The function looks like this...
HTH, |
|
By: Emil
Date: 2006-11-27
Time: 01:31
|
Re: Delete cache filesThanks TomH, However, I just want to use '*' charactor for the cacheID when I want to remove caches.
however, I fixed it. ( a stupid change.... not sure is there any smart way... ) I am using a sub-class of TBS. The function below is a private function, anyway the point is when we found a "*" in the cacheID and it is not alone. we backup the original cacheMask and create a new one for our cacheID (eg. 'topic1*'). When the mask changed, we use a single '*' to delete all topic1XXXXXX cache files. Finally, we changed the mask back.
|
|
By: Skrol29
Date: 2006-11-27
Time: 03:22
|
Re: Delete cache filesHi,
An upgrade of the Cache plug-in will be provided with TBS 3.2.0 tomorrow. This upgrade will give a solution for your problem. There is a fix and also a new command for the plug-in. |
|
By: Skrol29
Date: 2006-11-28
Time: 00:45
|
Re: Delete cache filesHi,
TBS 3.2.0 is available, and the Cache plug-in is upgraded. |
|
By: Emil
Date: 2006-11-28
Time: 01:06
|
Re: Delete cache filesThanks Skrol29 !!...^_________^
|