Categories > TinyButStrong general >

How to cache like this?(index.php?page=X)

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Like
Date: 2006-01-23
Time: 16:27

How to cache like this?(index.php?page=X)

when use CacheAction(),it only creat a cached page
So if first open "index.php?page=1" it will be cached and the "index.php?page=2"result will same as "index.php?page=1"
By: neverpanic
Date: 2006-01-23
Time: 22:59

Re: How to cache like this?(index.php?page=X)

You have to create a subtemplate system and cache the subtemplates, as far as I see.
I have such a setup, and I just don't cache at all, works for me.
By: Skrol29
Date: 2006-01-24
Time: 00:17

Re: How to cache like this?(index.php?page=X)

Hello like,

You can tell TBS to use different cache files for "page=1" and "page=2" using the cache id.
For example :
$cache_id = 'main_'.$page;
$TBS->CacheAction($cahce_id;...);