Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
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
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
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
Re: [plugin] [ORPHAN] zem_cache: experiment
Anybody have the current location of this plugin?
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Re: [plugin] [ORPHAN] zem_cache: experiment
zem wrote:
ma_smith: that link works fine for me…
Offline
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
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
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)
- I am Squared Eye and I
am launchinghave launched Pattern Tap
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
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
Re: [plugin] [ORPHAN] zem_cache: experiment
Yes, thanks to zem, for a great plugin. ;)
Offline