Textpattern Forum

You are not logged in. Register | Login | Help

#1 2010-04-11 11:23:50

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 249
Website

aks_cache: Partial caching web pages. SpeedUp your site!

Partial caching web pages

Version 0.2.8 download link / homepage

Summary:

Caching all inside <txp:aks_cache id="unique block id"> Any content with TxP tags </txp:aks_cache>

Good practice:

  • Cache some menu elements; recent articles list; last added articles list; any popular lists.
  • Cache cloud tags
  • Cache site main page or cache some ‘slow’ pages with many TXP tags.
  • Cache output some slow or difficult tags.

Bad practice:

  • Cache static content without TxP(or php include) tags
  • Full cache every page
  • Cache static body every page

Screenshot:

Related:

To freeze random content
Docs and Successful story

Last edited by makss (2012-01-23 21:52:30)


aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_meta | aks_header : Compress your pages on the fly

Offline

#2 2010-04-11 13:46:38

PascalL
Member
From: Switzerland
Registered: 2009-03-09
Posts: 132
Website

Re: aks_cache: Partial caching web pages. SpeedUp your site!

Brilliant ! Thanks!

Offline

#3 2010-04-13 14:11:24

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 249
Website

Re: aks_cache: Partial caching web pages. SpeedUp your site!

New version aks_cache 0.2.1

Changes:

  • Extend admin interface

Last edited by makss (2010-04-19 11:40:07)


aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_meta | aks_header : Compress your pages on the fly

Offline

#4 2010-04-13 23:20:01

paperboy
Member
From: Gothenburg, SE
Registered: 2006-01-24
Posts: 30
Website

Re: aks_cache: Partial caching web pages. SpeedUp your site!

Just tried this on my “Most Popular” and a “Top Referrers” list on my website and it seems to work like a charm! This + aks_header has made my website faster than ever so… thanks! :D

Offline

#5 2010-04-17 10:29:36

whocarez
Plugin Author
From: Germany/Ukraine
Registered: 2007-10-08
Posts: 165

Re: aks_cache: Partial caching web pages. SpeedUp your site!

I use actually zem_cache and your new plugin seems to be more comfortable to use, but is it possible to distinguish between “global” cache and cache per page?
To clearify: zem_cache had a ‘ctx’ and a ‘id’ parameter

id – Use this if you’re using multiple zem_cache tags per page. Each tag should have a different id. It doesn’t matter what the id is set to – a number is fine – as long as each one is different.
ctx – Use this to cache a single copy of something globally across all pages, rather than once per page. For example, <txp:zem_cache ctx=“recent1”><txp:recent_articles /></txp:zem_cache>

thanks

Offline

#6 2010-04-19 10:30:24

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 249
Website

Re: aks_cache: Partial caching web pages. SpeedUp your site!

whocarez wrote:

I use actually zem_cache and your new plugin seems to be more comfortable to use, but is it possible to distinguish between “global” cache and cache per page?
To clearify: zem_cache had a ‘ctx’ and a ‘id’ parameter

aks_cache use one parameter id for “global” or cache per page.

Sample cache two blocks in one page per section:

<txp:aks_cache id='<txp:section />_block1'>
Content block1.
</txp:aks_cache>
Some...
<txp:aks_cache id='<txp:section />_block2'>
Content block2.
</txp:aks_cache>

aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_meta | aks_header : Compress your pages on the fly

Offline

#7 2010-04-19 10:31:53

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 249
Website

Re: aks_cache: Partial caching web pages. SpeedUp your site!

New version aks_cache 0.2.3

Changes:

  • Add option: “Reset cache if site was updated”

Last edited by makss (2010-04-19 11:10:55)


aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_meta | aks_header : Compress your pages on the fly

Offline

#8 2010-04-24 07:34:24

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 249
Website

Re: aks_cache: Partial caching web pages. SpeedUp your site!

New version aks_cache 0.2.4

Changes:

  • Add option: “Disable cache for admin”

aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_meta | aks_header : Compress your pages on the fly

Offline

#9 2010-04-24 11:28:21

whocarez
Plugin Author
From: Germany/Ukraine
Registered: 2007-10-08
Posts: 165

Re: aks_cache: Partial caching web pages. SpeedUp your site!

I tested aks_cache on my site and discovered, that it is only partly usable for me. Maybe I use the parameters not in the right way.
For example: I used zem_cache to cache “keywords” and “related articles” and also for “meta descriptions”. They are different for every article.
When I put aks_cache with id=“related” in the code, then there is only one cache for “related” articles and it shows these “related articles” under every article which is showed up, so it is not the intentioned use. So, if I used it in the right way, the aks_cache plugin is yet only for global caches usable.

Offline

#10 2010-04-24 13:10:36

maniqui
Moderator
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 2,975
Website

Re: aks_cache: Partial caching web pages. SpeedUp your site!

Although I’ve never used the plugin (I’m planning to use it on a current project), you could try something like this:

id='related-<txp:article_id />'.

This way, you will have one cache for each article.
Please, tell us if that works. Thanks :)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB