Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#73 2006-09-17 20:39:34

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

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

Re: #44 (reproducable + confirmation)

<—
I suspect this has to do with you guys getting the wrong http-headers, is it possible that you are running PHP as (F)CGI? We fixed something similar for the feeds, looks like the same thing is happening here.

For a temporary fix: In jpcache-main.php find: header(“HTTP/1.0 304”); and replace with header(“Status: 304 Not Modified”); if this does help, I should have an updated version ready soon.
—>

PHP 4.4.4. running as CGI combined with Firefox 1.5.0.6 needs that hack. Otherwise every cache cleaning results in white pages. This can only be solved through a forced reload.

I applied the hack and now Firefox behaves fine (MS-IE didn’t complain about it at all).


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

Offline

#74 2006-10-05 18:33:01

Isabella
New Member
Registered: 2006-07-22
Posts: 5

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

Love this plugin Sencer, thank you. I have a problem though. I’m getting multiple caches of the same URL for different browsers/computers. For example, when I view my homepage on my main computer in both FF and IE, I see that it caches 2 files for that page in the cache directory. I tried the same thing on a second computer and it cached a third file, but shared that file between IE and FF on that computer.

Do you have any idea why it’s behaving like this? I tried changing some of the configuration settings, but nothing worked. I don’t get any duplicates when viewing the site in just one browser. Also, I used the exact same URL in each browser for my tests, so it’s not caused by including/omitting a trailing slash or www in the URL. Thanks for your help.

Last edited by Isabella (2006-10-06 05:06:20)

Offline

#75 2006-10-05 19:40:31

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

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

Hi Isabella, this is most likely due to cookies. Pages with a comment-form will display the email (which may be private, depending on the setting of the server), also some people build customizations depending on those cookies (like Welcome xxxx messages etc.).
There is basically two ways to deal with this: Never cache and never serve cached pages for people with individual cookies; Or cache and serve those pages individually. asy_jpcache uses the latter way.

(Note: Only cookies starting with txp_* are checked for and dealt with, so Cookies set by any other application will be ignored).

Offline

#76 2006-10-06 08:00:20

Isabella
New Member
Registered: 2006-07-22
Posts: 5

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

Thanks for the quick response Sencer. It all makes sense now. I was using a cookie (starting with txp_) to allow users to select the number of articles to list per page (there were 3 options: 20, 50, and 100). The problem was that I forgot to set a path for the cookie. So the cookie was being sent to every page on the site, which explains why I was getting 3 different cached files for the homepage. Setting a relative path in the cookie to the “/articles/” section, in which I was listing the articles, did the trick (which also works for categories: “/articles/category”).

So now it is working as expected. On the paginated article lists, a page is cached for each option: 20, 50, and 100 articles per page. Plus, 2 small cookie files are cached for the 50 and 100 page settings (20 is default and doesn’t use the cookie).

My URL scheme for individual articles is “/title”, so I don’t have to worry about the cookie causing duplicate caches of articles, like it would with “/articles/title”.

Thanks again Sencer for cluing me in.

Offline

#77 2006-11-27 13:23:24

Ace of Dubs
Member
Registered: 2006-04-17
Posts: 446

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

Thank you for this amazing plugin.. it just works so well. My load times are cut down by 75%!!

You da man

Offline

#78 2006-11-29 23:21:34

Neko
Member
Registered: 2004-03-18
Posts: 458

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

Zanza wrote:

I have a site without any article tag (just a portfolio). Initially this plugin seemed to work, but after some minutes I get blank pages instead of cached ones. In a case I get messy character like:

Same problem here, running 4.0.4 on TXD, plug-in default settings. Is there a way to solve this?

Offline

#79 2006-11-30 18:23:56

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

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

Did you check #73?


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

Offline

#80 2006-11-30 19:43:48

Neko
Member
Registered: 2004-03-18
Posts: 458

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

merz1 wrote:

Did you check #73?

I completely overlooked that. Gonna try it now, thanks.

Offline

#81 2006-12-04 18:33:47

hablablow
Member
From: Paris
Registered: 2004-12-13
Posts: 309
Website

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

Sencer,

Your plugin is just great and speeds up my Txp powered site, as I already said here.
However, assuming that Txp doesn’t fire any error messages that would be cached, another problem may appear from time to time, and is cached: when the db is down with the minimal “ Database unavailable “ message.
I don’t know if this message is common to every Sql db install… If it’s the case isn’t there a way to perform a simple check ( header check or id check… ) and force to flush the cache the same way as when you would add a comment, post an article etc… to avoid caching such situation ?
Thanks !!


_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__

Hablablow + Webdesignofficina

Offline

#82 2006-12-08 14:32:29

thedogg
New Member
Registered: 2006-01-09
Posts: 3

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

I have installed the plugin and caching is happening at the moment. However, when I login to the control panel the following line appears in the bottom of the screen.

Notice: Undefined index: view in /home/XXXX/domains/domain.com/html/test/textpattern/lib/txplib_misc.php(512) : eval()'d code on line 24

When I turn off caching and then logout and in again this line is not appearing. Anybody have any clues how to fix this? BTW this is not happening on the actual site control panel only. Also when I navigate between the tabs of the control panel the line dissappears also.

Thx in advance

Last edited by thedogg (2006-12-08 14:35:33)

Offline

#83 2006-12-08 15:36:27

hablablow
Member
From: Paris
Registered: 2004-12-13
Posts: 309
Website

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

TheDogg,
This looks like a txp version problem… On wich version are you working ? 4.0.4 ? See earlier posts in this forum to see if the plugin has been ported to 4.0.4…
It’s working for me on txp v4.0.3
Hope this lights up the path a bit.

Last edited by hablablow (2006-12-08 15:37:04)


_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__

Hablablow + Webdesignofficina

Offline

#84 2006-12-08 16:52:43

thedogg
New Member
Registered: 2006-01-09
Posts: 3

Re: asy_jpcache 0.9.8 - Fast Full Page Caching

Hi hablablow, thx for the answer I am working on Textpattern 4.0.4 (r1956) under PHP5. Will have a look through the forum to find out whether the cache plugin has been ported to the latest 4.0.4 version.

Offline

Board footer

Powered by FluxBB