Categories > Your tips & tricks >

Change the names of created cache files

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Skrol29
Date: 2004-11-27
Time: 22:17

Change the names of created cache files

When a cache file is created by the TinyButSTrong Cache System it has a name looking like this : 'cache_tbs_XXX.php'. Where 'XXX' is the Id of the cache file definied with the CacheAction method.

There is an undocumented property which enables you to change that mask of file name. It is property CacheMask. The default value is 'cache_tbs_*.php'.
You can change it to any string with one '*' as wildcard for the cache Id. Take care that the mask must make valide file names.

  $TBS->CacheMask = '*.htm';