Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#169 2010-01-15 16:09:10

TJ
Member
From: Alton, Missouri USA
Registered: 2010-01-14
Posts: 23
Website

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

I’m receiving an error when I first login when I run this plugin.

artagesw wrote:

It is an easy fix. Edit the plugin code and change line 24 to the following:

&& ((count($_POST)==0) || (isset($_REQUEST['view']) && $_REQUEST['view']!='')) ) return;

I need some help and the solution may be in this post, but I don’t know which file to change line 24. I’m experiencing the following error…”

Notice: Undefined index: view in /home/ruby/public_html/iwant99.com/textpattern/lib/txplib_misc.php(594) : eval()’d code on line 24

Which file do I change? … And, what is the code I’m replacing?

Thanks for the help! I need all I can get!


“…freely ye have received, freely give.” | www.PublishingAWebsite.com

Offline

#170 2010-01-15 17:38:38

TJ
Member
From: Alton, Missouri USA
Registered: 2010-01-14
Posts: 23
Website

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

I figured out my problem and I’m documenting the solution … (it’s easy I just didn’t read closely enough)

========= start quote
TJ wrote:

I’m receiving an error when I first login when I run this plugin.

artagesw wrote:

It is an easy fix. Edit the plugin code and change line 24 to the following:

&& ((count($_POST)==0) || (isset($_REQUEST['view']) && $_REQUEST['view']!='')) ) return;

I need some help and the solution may be in this post, but I don’t know which file to change line 24. I’m experiencing the following error…”

Notice: Undefined index: view in /home/ruby/public_html/iwant99.com/textpattern/lib/txplib_misc.php(594) : eval()’d code on line 24

Which file do I change? … And, what is the code I’m replacing?

Thanks for the help! I need all I can get!

====================== end quote

Solution:

The “plugin code” must be changed (as quoted above). To do this for noobs (like me) go to the admin area (backend) of your textpattern install.

1) Click on “Admin”.
2) Click on ‘Plugins”.
3) Find the asy_jpcache line and click “Edit”
4) Find line 24 (it has the code “

&& ((count($_POST)==0) || ($_REQUEST['view']!='')) ) return; 

5) Paste this code right over the top of the old line 24 (replace it) “

&& ((count($_POST)==0) || (isset($_REQUEST['view']) && $_REQUEST['view']!='')) ) return;

6) Save

That’s it! It fixed my problem!

Thanks for the plugin :)


“…freely ye have received, freely give.” | www.PublishingAWebsite.com

Offline

#171 2010-06-11 14:49:31

Phil_
Member
Registered: 2009-09-21
Posts: 33

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

I use Textpattern as a CMS rather than a blog for some sites. There are no comments and I would like to have cached pages retained for a long period before being updated. In fact they could stay the same until I add or edit a page. Is this just a case of setting this number to a much higher figure?

$JPCACHE_TIME = 900;

If so what do you suggest to achive what I’m looking for?

Is there a maximum number of seconds?

Cheers

Phil

Offline

#172 2010-09-22 13:19:03

superfly
Plugin Author
From: vienna, austria
Registered: 2008-11-12
Posts: 24
Website

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

Has anyone else problems with asy_jpcache plugin and google chrome? With google chrome i only get a white page, when i deactived the plugin everthing works fine. This only happend in googles Chrome. Firefox, Safari, IE7 work fine on MAC&PC…


<code>is</poetry>

Offline

#173 2010-09-22 13:21:40

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

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

hi superfly,

could you try if this fix works for you?


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#174 2010-09-22 13:33:07

superfly
Plugin Author
From: vienna, austria
Registered: 2008-11-12
Posts: 24
Website

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

hey maniqui, thx for the fast reply!

i tried that but it didn’t helped … i always get a “Failed to load resource” response :^)

oh, and btw here is the link to the website which doesn’t work in chrome – http://www.tip-online.at

Last edited by superfly (2010-09-22 13:34:42)


<code>is</poetry>

Offline

#175 2010-10-01 19:38:14

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

All

Following a request from John Stephens I found myself trying this golden oldie for the first time and getting a little frustrated by some of the changes needed by, but not rolled into, the release. So without further ado, may I present a repo for this.

From the posts in this thread I’ve rolled in the following…

  • Bugfix: File downloads
  • Bugfix: Undefined Index: view notice
  • Missing privs to allow access to the admin-side extension tab.

Excluded so far…

  • FCGI fix.

What else needs to go in as standard?


Steve

Offline

#176 2010-10-04 20:46:23

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 997
Website

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

Howdy again, Steve! I’ve always used asy_jpcache with FCGI without any issues. The only caveat is that I also use aam_zcr_clearcache for compatibility with zem_contact_reborn— I’d be happy if they were rolled into one.

My only issue with asy_jpcache is that it requires a hack to TXP’s core. I’m curious what would be needed from the core to support caching without the hack.

Offline

#177 2010-10-04 21:55:49

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

Hi John,

you wrote…

The only caveat is that I also use aam_zcr_clearcache for compatibility with zem_contact_reborn— I’d be happy if they were rolled into one.

Be happy!

I’m curious what would be needed from the core to support caching without the hack.

So am I — but I haven’t got to the bottom of that yet. Perhaps Sam can chip in here as he mentioned core changes in some older posts in this thread and also has a caching mechanism in his own CMS that I believe he may be looking to introduce into TXP 5.


Steve

Offline

#178 2010-10-05 13:18:41

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

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

Regarding TXP core and cache support there is a thread in ‘feature requests’: Full page caching in TXP core


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

Offline

#179 2010-10-05 13:52:32

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 997
Website

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

Thanks, Markus. I forgot all about that thread. Apparently I posted the same issue there. ;)

Offline

#180 2010-10-05 18:32:54

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

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

net-carver wrote:

Perhaps Sam can chip in here as he mentioned core changes in some older posts in this thread and also has a caching mechanism in his own CMS that I believe he may be looking to introduce into TXP 5.

Depends on how we decide to implement it. The main issue with the plugin is that it requires changes to index.php and has a separate configuration file. Some of the configuration cannot really live in the db, because the cacher needs to run very early. So, at a minimum, adding caching awareness into index.php and then adding some new config directives to config.php to control the cacher.

Offline

Board footer

Powered by FluxBB