Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#91 2007-03-06 17:27:36

dbulli
Member
Registered: 2004-11-22
Posts: 195
Website

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

I get the following error:
Notice: Use of undefined constant TXP_DEBUG – assumed ‘TXP_DEBUG’ in /textpattern/lib/txplib_db.php on line 72

Fatal error: Call to undefined function getmicrotime() in /textpattern/lib/txplib_db.php on line 77


nuff-respec ::: dannyb

Offline

#92 2007-03-06 17:54:46

dbulli
Member
Registered: 2004-11-22
Posts: 195
Website

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

added these lines … even though help said after config.php with logging enabled ..

include $txpcfg[‘txpath’].’/lib/constants.php’;
include $txpcfg[‘txpath’].’/lib/txplib_misc.php’;
include ‘./jpcache/jpcache.php’;

all seemed to work well … except my home page was blank when i put www.nuff-respec.com/ without the index.php


nuff-respec ::: dannyb

Offline

#93 2007-05-20 17:22:29

juanjonavarro
Plugin Author
From: Valencia, Spain
Registered: 2005-05-16
Posts: 485
Website

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

This plugin is working well for me, except that the cache is not cleaned when a comment is posted. In the source of the plugin we can read a comment:

// We do not have a callback when comments are posted on the front_end
// but that's ok, I hacked some magic into jpcache-main.php

But the magic is not working (at least for me) :-)

In TxP 4.0.4 we have a new callback when someone post a comment. So you just need to substitute the comment with:

register_callback("asy_flush_event", "comment.save");

And now everything works.

Last edited by juanjonavarro (2007-05-20 17:23:05)

Offline

#94 2007-05-20 19:15:04

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

Any idea when flushing the cache will happen if comments are moderated?

On my site comments are moderated and I would expect the cache to be flushed when I publish the comment from the admin area.


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#95 2007-05-20 19:25:15

juanjonavarro
Plugin Author
From: Valencia, Spain
Registered: 2005-05-16
Posts: 485
Website

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

I think it is flushed when the comment is posted (on the public side).

You can always flush the cache from the “extensions” tab when you publish the comment on the admin area.

Offline

#96 2007-05-21 15:07:19

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

Yep, that was my question.

Adding the hack if the cache is flushed when the commentor posts his comment is not really helpful if you have comments moderated.

But thanks for the hack anyway. There may be other sites…


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#97 2007-06-15 07:22:05

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

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

Will this plugin work with 4.0.5?

Offline

#98 2007-06-15 15:56:55

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

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

I’m getting some blank page loads in 4.0.4

They require me to hit CTRL F5 to get the page to render fully.

Any idea what is causing this?

Last edited by FireFusion (2007-06-15 15:57:09)

Offline

#99 2007-06-15 16:33:23

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: asy_jpcache 0.9.8 - Fast Full Page Caching


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#100 2007-06-15 16:49:42

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

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

Thanks maniqui,

the header fix works great!

Offline

#101 2007-06-22 19:42:48

artagesw
Member
From: Seattle, WA
Registered: 2007-04-29
Posts: 227
Website

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

I ran across a bug in asy_jpcache 0.9.8 that causes it to erroneously cache file downloads. The symptom is that a file download will only work the first time, or after the cache is cleaned. I’m not sure why this hasn’t been more widely experienced/reported. At any rate, here is the fix that worked for me:

In jpcache-main.php find this line:

if (strpos($_SERVER[‘REQUEST_URI’],’/file_download/’) ||

and replace it with this:

if (strpos($_SERVER[‘REQUEST_URI’],’/file_download/’) !== FALSE ||

Offline

#102 2007-08-14 13:12:18

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

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

Any chance of some official fixes applied to the download? I think this is an important plugin for TXP.

Offline

#103 2007-08-25 21:24:43

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

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

FireFusion wrote:

Any chance of some official fixes applied to the download? I think this is an important plugin for TXP.

I second that. The header bug that you ran into and the file download caching bug reported by artagesw both really need to be fixed in the official plugin itself.

Last edited by Logoleptic (2007-08-25 21:26:13)

Offline

#104 2007-09-11 21:01:21

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

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

Some questions:

1. I’ve installed the plugin, following all the directions, but I’m not sure the plugin is doing anything, any way to tell? I see the jpcache-cleanup plugin in Extensions reports there are 214 cache files totaling 22MB so from that perspective it looks to be working.

I’m guessing it’s caching the large media files I have on my server, just noticed the post above mine here, I’ll put that fix in and see if the size doesn’t stay lower.

2. I am on PHP 5 through FCGI. Do I need to enable zlib in my php.ini? I saw this on jpcache.com as a requirement, but not in this plugin’s release notes. Also, what’s the deal with turning on/off gzipping? An explanation in layman’s terms would be much appreciated.

3. I wanted to use this plugin to see if it would let me cache the random thumbnails generated by the vdh_flickr_thumbnails tag of vdh_flickr. It basically goes through my whole Flickr account and picks 4 random photos each time you navigate to a new page on my site. Currently I have removed this tag as it adds too much time to the page load, and I saw no improvement with asy_jpcache, because new thumbnails continued to be generated sometimes, even if it was less than 15 minutes since I refreshed the page. So, I’m wondering if the plugin is not working at all or if it just isn’t helping my random thumbnails problem because vdh_flickr is forcing new random photos to be retrieved regardless of the 15 minute timeout for asy_jpcache.

Last edited by aswihart (2007-09-11 21:45:48)

Offline

#105 2007-10-09 11:15:05

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

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

Hi – I’m getting the following notice whenever I log into the admin area with v0.9.8, TXP 4.0.5:

Notice: Undefined index: view in /home/url_to_txp/textpattern/lib/txplib_misc.php(534) : eval()’d code on line 24

The notice appears at the bottom of the Write page, between the Excerpt field and Go… pop-up menu. Reloading the page makes the message go away.

Any ideas?

Last edited by kimguan (2007-10-16 02:22:43)

Offline

Board footer

Powered by FluxBB