[MODDB] Cache Guests Pages

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Scam Warning
User avatar
ViolaF
Registered User
Posts: 1468
Joined: Tue Aug 14, 2012 11:52 pm

Re: [Beta] Cache Guests Pages

Post by ViolaF »

Haravikk and Kot Matroskin. You are funny with your twin mods :lol:

User avatar
Kot Matroskin
Registered User
Posts: 126
Joined: Sat May 29, 2010 9:44 am
Location: Minsk, Belarus
Name: Vitaly Filatenko
Contact:

Re: [Beta] Cache Guests Pages

Post by Kot Matroskin »

Thanks a lot, I'll do the same check. I know about simultaneous cron, but didn't payed attention on it, because this script is executed by timer, and if it called twice before configured expiration time, it is not executed. So, I didn't care about it. But... Really, why not to handle this situation as well? :)

User avatar
Kot Matroskin
Registered User
Posts: 126
Joined: Sat May 29, 2010 9:44 am
Location: Minsk, Belarus
Name: Vitaly Filatenko
Contact:

Re: [Beta] Cache Guests Pages

Post by Kot Matroskin »

Version 0.4.0 has been released.

Changes:
  • Fixed error when posts moving doesn't work
  • Don't cache pages with cron calls within
  • Admin page: warning on wrong cache type

mandrake88
Registered User
Posts: 91
Joined: Tue Jun 03, 2008 3:21 pm

Re: [Beta] Cache Guests Pages

Post by mandrake88 »

Very interesting mod. But i have a couple of questions:

1: Guest and bots always read the data from cache? guest will never trigger a cache-update?
2: When the cache is updated? every time a normal user display the page?

User avatar
Kot Matroskin
Registered User
Posts: 126
Joined: Sat May 29, 2010 9:44 am
Location: Minsk, Belarus
Name: Vitaly Filatenko
Contact:

Re: [Beta] Cache Guests Pages

Post by Kot Matroskin »

mandrake88 wrote:1: Guest and bots always read the data from cache? guest will never trigger a cache-update?
2: When the cache is updated? every time a normal user display the page?
There are write-through cache used. If someone writes to topic, so old topic cache will be removed, as well as corresponding forums' cache. Also cache has cache expiration time configured from admin panel.

mandrake88
Registered User
Posts: 91
Joined: Tue Jun 03, 2008 3:21 pm

Re: [Beta] Cache Guests Pages

Post by mandrake88 »

elegant solution, good job

User avatar
Kot Matroskin
Registered User
Posts: 126
Joined: Sat May 29, 2010 9:44 am
Location: Minsk, Belarus
Name: Vitaly Filatenko
Contact:

Re: Cache Guests Pages

Post by Kot Matroskin »

1.0.0 version has been submitted. Changes are:
  1. Improve HTTP caching by adding ETag/If-None-Match functionality;
  2. No need for compatibility with HTTP Guest cache mod anymore;
  3. Remove session identifiers for guests (hookable).
Link to download in first topic post.

User avatar
prototech
Former Team Member
Posts: 5406
Joined: Mon Mar 19, 2007 2:04 pm
Location: Southern California

Re: Cache Guests Pages

Post by prototech »

Hello there,

Your topic should always contain a prefix so that users are aware of which stage in the development process your MOD is in. Since your MOD is currently in the MOD validation queue, your topic should be prefixed with [RC]. See rule 3 of the MODS in the Development Forum rules.

I have adjusted it myself this time, but please keep this in mind for the future. :)

Thank you,
The phpBB Modifications Team
Need help with MOD/style installations or other phpBB problems? Contact me for a quote.

User avatar
Citromon
Registered User
Posts: 129
Joined: Wed Feb 15, 2012 5:22 pm
Location: Minsk, Belarus

Re: [RC] Cache Guests Pages

Post by Citromon »

Hi,
what is different from your mod and this MOD viewtopic.php?f=70&t=2171266 ?

How to adapt another mods pages to work with your improved cache?

Is your mod compatible with SEO Ultimate mod?
What the anvil? What dread grasp
Dare its deadly terrors clasp?

User avatar
Kot Matroskin
Registered User
Posts: 126
Joined: Sat May 29, 2010 9:44 am
Location: Minsk, Belarus
Name: Vitaly Filatenko
Contact:

Re: [RC] Cache Guests Pages

Post by Kot Matroskin »

Citromon wrote:Hi,
what is different from your mod and this MOD viewtopic.php?f=70&t=2171266 ?
Haravikks mod performs caching on HTTP layer. Workflow looks like following:

guest asks for page
page loaded with public headers, stored in cached proxy for configured time (default 15 minutes)
another guest asked for the same page
page returned from proxy

In my case workflow is below:

guest asks for page
page loaded with public headers, stored in local file cache (default 12 hours)
another guest asked for the same page
page returned from local cache

It is possible to combine both mods.
Citromon wrote:How to adapt another mods pages to work with your improved cache?
Described here: https://www.phpbb.com/customise/db/mod/cgp/faq/f_844
Citromon wrote:Is your mod compatible with SEO Ultimate mod?
Didn't verified. But assume should be compatible.

User avatar
Citromon
Registered User
Posts: 129
Joined: Wed Feb 15, 2012 5:22 pm
Location: Minsk, Belarus

Re: [RC] Cache Guests Pages

Post by Citromon »

Thanks for reply.

Is there any sense to combine those two mods?
Which from them, in your opinion, is more demanding to server resources?

https://www.phpbb.com/customise/db/mod/cgp/faq/f_844 is broken. Can you give another one again?
What the anvil? What dread grasp
Dare its deadly terrors clasp?

User avatar
Kot Matroskin
Registered User
Posts: 126
Joined: Sat May 29, 2010 9:44 am
Location: Minsk, Belarus
Name: Vitaly Filatenko
Contact:

Re: [RC] Cache Guests Pages

Post by Kot Matroskin »

Citromon wrote:Is there any sense to combine those two mods?
Which from them, in your opinion, is more demanding to server resources?
It makes sense to use both, moreover I recommend it.
Citromon wrote:https://www.phpbb.com/customise/db/mod/cgp/faq/f_844 is broken. Can you give another one again?
It is not broken, it still unavailable while mod still not validated by phpBB mod team. :)

User avatar
Kot Matroskin
Registered User
Posts: 126
Joined: Sat May 29, 2010 9:44 am
Location: Minsk, Belarus
Name: Vitaly Filatenko
Contact:

Re: [RC] Cache Guests Pages

Post by Kot Matroskin »

Simply explanation how it works.

Image
Last edited by Kot Matroskin on Wed Mar 06, 2013 11:17 am, edited 1 time in total.

mandrake88
Registered User
Posts: 91
Joined: Tue Jun 03, 2008 3:21 pm

Re: [RC] Cache Guests Pages

Post by mandrake88 »

nice graphic 8-)

User avatar
Kot Matroskin
Registered User
Posts: 126
Joined: Sat May 29, 2010 9:44 am
Location: Minsk, Belarus
Name: Vitaly Filatenko
Contact:

Re: [RC] Cache Guests Pages

Post by Kot Matroskin »

New version 1.1.0 has been released. List of changes:
  1. Returned compatibility with HTTP Guests cache mod;
  2. Possibility to use different cache types for a forum and for the mod;
  3. Support mod Version Check;
  4. Add-on: Hide current time displaying for guests.

Locked

Return to “[3.0.x] MODs in Development”