1
sbkiller
Cache
  • 2004/9/13 11:22

  • sbkiller

  • Just can't stay away

  • Posts: 461

  • Since: 2004/6/9 2


I have search it but no answer

If I set the cache to news for 1 week and then I wrote a news will it be update after one week? I mean appear? Unless user refresh the page or clean up their browsers cache.

I have test it, looks like I post then it just appear quickly. Do I set all to the 3 weeks?

If then how does it work?

Thank!

2
Mithrandir
Re: Cache

If you have 1 week caching on your news module, then it will be saved in a HTML file next time it is accessed and not updated until a week later. This means that any news items you publish after the first viewing will not show up until the week after, when the cache is expired and a new HTML file is saved.

There is nothing the user can do to force an update. The caching is on the SERVER, not in the browser.

Updating system or module preferences will clear the cache completely or for the specified module, respectively.

3
sbkiller
Re: Cache
  • 2004/9/13 15:47

  • sbkiller

  • Just can't stay away

  • Posts: 461

  • Since: 2004/6/9 2


How this will increase the performance?

4
Dave_L
Re: Cache
  • 2004/9/13 16:37

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


When the page was originally generated, it may have required lots of database queries and execution of a lot of PHP code. Displaying a cached page requires less server resources, since only the final page output needs to be retrieved from the cache and sent to the browser.

5
sbkiller
Re: Cache
  • 2004/9/13 17:19

  • sbkiller

  • Just can't stay away

  • Posts: 461

  • Since: 2004/6/9 2


Did you mean the performance is only when creating a page or when browsing by other users?

6
Dave_L
Re: Cache
  • 2004/9/13 17:41

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


I'm not sure I understand your question.

A cached page takes less work for the server when the page is displayed to the user.

This may help: http://smarty.php.net/manual/en/caching.php

Login

Who's Online

282 user(s) are online (88 user(s) are browsing Support Forums)


Members: 0


Guests: 282


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits