Page 1 of 1

Problems with caching in module News

Posted: Sun Feb 12, 2006 4:28 pm
by tyaga
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.

Re: Problems with caching in module News

Posted: Sun Feb 12, 2006 4:39 pm
by Ted
There are some issues with the cachable flag in content in 0.11.2.  Please give it a try with one of the 0.12 betas and let me know if you have the same problem.

Thanks!

Re: Problems with caching in module News

Posted: Sun Feb 12, 2006 4:43 pm
by tyaga
oops... i forgot to say that it is the last version - 0.12 Beta 1

Re: Problems with caching in module News

Posted: Sun Feb 12, 2006 7:22 pm
by Ted
Oh.  Ok, I'll have to look into it.

Re: Problems with caching in module News

Posted: Sun Feb 12, 2006 7:24 pm
by tyaga
thank you, wishy!