Problems with caching in module News
Posted: Sun Feb 12, 2006 4:28 pm
I made changes in module News, added division list of news into pages. Added parameter 'perpage'.
If you add on content-page tag: {cms_module module="news" perpage='3'}, list of pages is shown:
{a href='http://.../index.php?page=news&npage=1'} 1{/a} {a href='http://.../index.php?page=news&npage=2'}2{/a}
And if you push on link '1', the first 3 news will shown, and if you push on link '2', the next 3 news will shown.
And while adding a page to select content-type=News, problems with caching will appeared. In this case in any change in any code, related to module News, you must clear folders tmp/cache/ and tmp/templates_c, otherwise nothing in showing won't change. And what is more, parameters which getting in $_GET are caching too.
If you clear cache and push on link '1', the first page will shown. Then if you don't clear cache and push on link '2', the first page still will shown, in spite of another $npage is in $_GET.
I will be thankful for any comments. I hope to your aid. Thanks.
If you add on content-page tag: {cms_module module="news" perpage='3'}, list of pages is shown:
{a href='http://.../index.php?page=news&npage=1'} 1{/a} {a href='http://.../index.php?page=news&npage=2'}2{/a}
And if you push on link '1', the first 3 news will shown, and if you push on link '2', the next 3 news will shown.
And while adding a page to select content-type=News, problems with caching will appeared. In this case in any change in any code, related to module News, you must clear folders tmp/cache/ and tmp/templates_c, otherwise nothing in showing won't change. And what is more, parameters which getting in $_GET are caching too.
If you clear cache and push on link '1', the first page will shown. Then if you don't clear cache and push on link '2', the first page still will shown, in spite of another $npage is in $_GET.
I will be thankful for any comments. I hope to your aid. Thanks.