Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#37 2006-10-07 22:24:39

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: [plugin] [ORPHAN] zem_cache: experiment

Matthew: those figures show an improvement, albeit a small one. Lower numbers are better.

If you’re not seeing those messages (they show up in html comments), it probably means the plugin isn’t working. Check that it’s enabled, try testing and debug mode, etc.


Alex

Offline

#38 2007-02-21 08:44:38

magicRob
Member
Registered: 2005-12-26
Posts: 14

Re: [plugin] [ORPHAN] zem_cache: experiment

Is this plugin still available?

Offline

#39 2007-02-21 10:55:58

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: [plugin] [ORPHAN] zem_cache: experiment

It should be. The download link is broken?

Offline

#40 2007-03-02 15:34:37

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Re: [plugin] [ORPHAN] zem_cache: experiment

Wondering the same thing

Offline

#41 2007-05-02 21:29:53

wagerrard
New Member
Registered: 2007-05-01
Posts: 2

Re: [plugin] [ORPHAN] zem_cache: experiment

Just installed it on 4.0.4. No timeout set. I’m seeing files in the cache directory, but they are all zero-byte empty files. Shouldn’t I be seeing something?

Offline

#42 2007-08-24 04:16:32

kimguan
Member
Registered: 2004-12-30
Posts: 14

Re: [plugin] [ORPHAN] zem_cache: experiment

Version 0.5 works on 4.0.5 too. But I only wrap the tag around “expensive” tags like stw_category_tree and not the whole page as suggested in the instructions.

Using it this way reduced page load times on those pages significantly, from 20-30 seconds to 1 or 2 seconds (my site has around 100 categories in 3 levels of hierarchy).

Offline

#43 2007-10-04 12:11:54

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: [plugin] [ORPHAN] zem_cache: experiment

the initial post holds an outdated link. it should be edited by a mod or something to include this link:

http://thresholdstate.com/download/zem_cache-0.5.txt

Offline

#44 2007-10-08 02:45:06

kimguan
Member
Registered: 2004-12-30
Posts: 14

Re: [plugin] [ORPHAN] zem_cache: experiment

Hi – zem_cache was working beautifully for me. Now, some of the pages it is used on displays the comment “cache bypassed”.

Any idea how this happened and would someone please help get it working again? Zem_cache is important for my site because it greatly reduces the load times & server load for some of my pages (see my post above).

Things I’ve done to try and fix the problem:
  1. checked to make sure tag is okay on my page template;
  2. reinstalled zem_cache
  3. flushed cache
  4. changed tmp directory

Thanks for any help.

Last edited by kimguan (2007-10-08 05:22:10)

Offline

#45 2008-03-15 12:32:35

aswihart
Member
From: Pittsburgh, PA
Registered: 2006-07-22
Posts: 345
Website

Re: [plugin] [ORPHAN] zem_cache: experiment

Can anyone give me a good reason to use this instead of asy_jpcache? Just wondering if maybe I’d be better served by caching common elements across pages, as far as browser loading times for site visitors.

Offline

#46 2013-02-14 16:36:35

whocarez
Plugin Author
From: Germany/Ukraine
Registered: 2007-10-08
Posts: 305
Website GitHub Twitter

Re: [plugin] [ORPHAN] zem_cache: experiment

Hello
I’ve extended this plugin a little bit. So ctx marked blocks are now saved in a different folder named noreset. With this you are able to delete id files independently from ctx files. Maybe it helps someone …

# zem_cache v0.51
# Caching experiment
# Threshold State
# http://thresholdstate.com/

# ......................................................................
# This is a plugin for Textpattern - http://textpattern.com/
# To install: textpattern > admin > plugins
# Paste the following text into the 'Install plugin' box:
# ......................................................................

YTo5OntzOjQ6Im5hbWUiO3M6OToiemVtX2NhY2hlIjtzOjc6InZlcnNpb24iO3M6NDoiMC41
MSI7czo2OiJhdXRob3IiO3M6MTU6IlRocmVzaG9sZCBTdGF0ZSI7czoxMDoiYXV0aG9yX3Vy
aSI7czoyNjoiaHR0cDovL3RocmVzaG9sZHN0YXRlLmNvbS8iO3M6MTE6ImRlc2NyaXB0aW9u
IjtzOjE4OiJDYWNoaW5nIGV4cGVyaW1lbnQiO3M6NDoidHlwZSI7aToxO3M6NDoiaGVscCI7
czoxOTk0OiIJPHA+emVtX2NhY2hlIGlzIGEgc2ltcGxlIGNhY2hpbmcgcGx1Z2luLiBJdCBt
aWdodCBoZWxwIGltcHJvdmUgVG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