Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2006-05-08 01:54:09

Logoleptic
Plugin Author
From: Kansas, USA
Registered: 2004-02-29
Posts: 482

Re: [plugin] [ORPHAN] zem_cache: experiment

This is a great plugin, but it doesn’t travel well.

I was trying to move a site from my development database on my local machine to the live database on my web server. I noticed that zem_cache was throwing errors in the admin interface, and was refusing to cache anything in /textpattern/tmp/[random name]. I tried turning the plugin on and off, removing and then restoring all the <txp:zem_cache></txp:zem_cache> tag pairs I’d set up, un-installing and re-installing the plugin, all with no result.

Finally, I looked in the database to see if zem_cache was hiding its cache directory settings there. Lo and behold, a field called zem_cache_dir in the txp_prefs table was the super-secret location where this plugin keeps track of the cache directory.

Could we please move this to the admin interface, so people who do development on localhost don’t have to tear their hair out? Better yet, why not only store the hashed sub-directory name that zem_cache uses in the zem_cache_dir field, then query for the Txp temp dir at runtime and concatenate the two? Sure would’ve saved me a lot of headaches.

I’m sorry to complain so much, but I’ve just lost a lot of time figuring this out.

Offline

#26 2006-05-31 07:42:14

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: [plugin] [ORPHAN] zem_cache: experiment

Homepage Runtime Queries Query Time
Before Plugin 1.4437 39 0.090108
Fresh Copy 0.0750 38 0.042339
Cached Copy 0.0313 7 0.016149

Thanks zem! My server’s kind of old (but fortunately being upgraded soon), so this really helps.

Last edited by deldindesign (2006-05-31 07:46:35)

Offline

#27 2006-10-05 14:17:21

sthmtc
Member
From: CGN, GER
Registered: 2005-01-17
Posts: 586
Website

Re: [plugin] [ORPHAN] zem_cache: experiment

just experimented a bit with this plugin and it really improved my sites speed.
(some stats: Runtime: 0.0980, Query time: 0.020536, Queries: 17) (before i had roughly about 58 queries…)

i have a question though: would it be possible to flush the cache if there is a new comment on an article? sencer told me it should be possible in 4.0.3, that’s why i’m asking ;)

Offline

#28 2006-10-05 15:04:18

cbeyls
Archived Plugin Author
From: Brussels, Belgium
Registered: 2005-09-12
Posts: 136
Website

Re: [plugin] [ORPHAN] zem_cache: experiment

This plugin is really great and well-coded, it should be included into Textpattern.
However people have to learn what to cache and what not to cache, it’s not always obvious.

Thanks to Textpattern and this plugin, my website’s flying (just compare them to Wordpress which is extremely slow). Thank you.


My plugins : cbs_live_search (improved) – cbs_category_list – cbs_navigation_menu – cbs_gravatar (updated) – cbs_article_index – cbs_maintenance_mode (new) – cbs_section_language (new)

Offline

#29 2006-10-05 17:09:42

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: [plugin] [ORPHAN] zem_cache: experiment

Anybody have the current location of this plugin?


Offline

#30 2006-10-05 17:11:47

sthmtc
Member
From: CGN, GER
Registered: 2005-01-17
Posts: 586
Website

Re: [plugin] [ORPHAN] zem_cache: experiment

zem wrote:

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

ma_smith: that link works fine for me…

Offline

#31 2006-10-05 17:19:27

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: [plugin] [ORPHAN] zem_cache: experiment

sthmtc,

I didn’t do my homework. Zem’s original post has the old link.
thanks for catching me up to speed.

Matthew


Offline

#32 2006-10-06 18:15:49

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: [plugin] [ORPHAN] zem_cache: experiment

I’m not seeing any of the cached, fresh, etc messages that Zem spoke of. Can someone help me troubleshoot?

I am wrapping my front page (here) with zem_cache (without any attributes)

Before plugin:
Before Zem Cache:

<!-- Runtime: 0.8459 -->
<!-- Query time: 0.42659 -->
<!-- Queries: 68 -->
<!-- Memory: no info available -->

I dropped cache in my browser. Reload and go.

<!-- Runtime: 0.3418 -->
<!-- Query time: 0.153885 -->
<!-- Queries: 69 -->
<!-- Memory: no info available -->

and again…

<!-- Runtime: 0.4252 -->
<!-- Query time: 0.191612 -->
<!-- Queries: 68 -->
<!-- Memory: no info available -->

It actually got worse?

Any ideas?

Last edited by zem (2006-10-07 22:22:39)


Offline

#33 2006-10-07 12:53:27

M_i
Member
Registered: 2006-03-05
Posts: 122

Re: [plugin] [ORPHAN] zem_cache: experiment

I’ve just moved my site to a new host, and because of that my temp directory has changed. Of course I’ve changed the location of the temp directory in the site preferences, but this plugin still seems to be searching for files in the old location.

How would I go about erasing all old caching data and starting afresh?

Offline

#34 2006-10-07 13:08:26

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: [plugin] [ORPHAN] zem_cache: experiment

The plugin stores a preference in the database. You can use phpmyadmin and remove the row from the preferences table. The plugin will then re-create it.

Offline

#35 2006-10-07 13:19:14

M_i
Member
Registered: 2006-03-05
Posts: 122

Re: [plugin] [ORPHAN] zem_cache: experiment

Sencer wrote:

The plugin stores a preference in the database. You can use phpmyadmin and remove the row from the preferences table. The plugin will then re-create it.

Thanks!

And thanks for the great plugin, of course-

Offline

#36 2006-10-07 13:23:06

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: [plugin] [ORPHAN] zem_cache: experiment

Yes, thanks to zem, for a great plugin. ;)

Offline

Board footer

Powered by FluxBB