Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#106 2007-10-09 11:28:59

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

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

Senser, I love the plugin, but what are the official installation instructions?

In post #1 and in the plugin’s own documentation, the include jpcache.php comes BEFORE publish.php.
However, in post #29 and in the plugin’s own configuration file, jpcache.php comes AFTER publish.php.

Could we please have an official word on the correct order please?

If it’s of any interest, I have jpcache.php AFTER publish.php and it seems to work (for that matter, it seemed to work the other way too), simply because that instruction came later.

However, either way, I still get an error message (see post #105 above).

Offline

#107 2007-10-11 06:18:01

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

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

kimguan wrote:

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

That’s a known problem with asy_jpcache, but the error is non-critical and nothing to be worried about.

I would, however, strongly recommend editing your original post for security reasons. It’s generally a bad idea to disclose the full server path to your website. Something like this would be safer:

Notice: Undefined index: view in /path/to/site/textpattern/lib/txplib_misc.php(534) : eval()'d code on line 24

That should give people a good idea of what you mean, but without the security risk.

Edit: For what it’s worth, kimguan, here are the last few lines of my index.php file. Remember, this is the index.php file in the root folder of your site not the one in /textpattern/.

/* Full-page caching with jpcache. Comment out next line to disable. */
include './jpcache/jpcache.php';

include $txpcfg['txpath'].'/publish.php';
textpattern();

That works for me. Is a similar arrangement still giving you trouble?

Last edited by Logoleptic (2007-10-11 06:23:07)

Offline

#108 2007-10-13 00:20:50

jtlapp
Member
From: Austin, TX
Registered: 2006-03-19
Posts: 59
Website

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

I have the cache working great, but my testing shows that the behavior is different from what is advertized:

  • Cached pages never expire by exceeding the $JPCACHE_TIME time.
  • Posting a single comment invalidates the entire cache.

I’m testing by changing the title of my pages via source code and seeing what circumstances lead to the new title being reflected on the page I’m testing.

Reducing $JPCACHE_TIME to 30 seconds never resulted in the new title showing, even after 30 seconds, but simply re-saving the page template caused the new title to load.

I have a recent_comments in my sidebar on every page. I wouldn’t expect the cache to know this. Even so, adding one comment to one page causes all other pages to be refreshed. I’m using multiple sections.

I was hoping to rely on cache expiry to refresh the sidebar, as that would be more efficient. Any suggestions? Thanks!

~joe

Offline

Board footer

Powered by FluxBB