Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

[Update] Cache_Page 1.1 available

Quote Reply
[Update] Cache_Page 1.1 available
Hi All,

A new version of Cache_Page plugin is available for downloading. The following features have been added to this version:
  • Caching links which use frames. The plugin will cache every frame page for a link and the frames can later be displayed in their original layout. This feature is optional.
  • Following redirects. The plugin will follow 301 and 302 redirect to cache a moved page and, at the same time, fix the URL field in the Links table for links with 301 status. This feature is optional.
  • Updating cached page. The plugin will compare the last-modified response header and the time when the cached page was created for a link. It will only update the page if the page has been updated since last caching.
  • Ability to perform Cache, Delete, and Update on all links.


Please see this link for previous discussions on this plugin:

http://www.gossamer-threads.com/...i?post=240364#240364

Enjoy!

Long
Quote Reply
Re: [long327] [Update] Cache_Page 1.1 available In reply to
Hi;

The ability to follow redirected pages is fantastic!Cool
However, updating such URL's to the final page can be dangerous and should be a separate option.

In our case, we send traffic out to affiliate programs, which use a counting url or cgi process. The final page is then loaded. So if you replace the Links URL with the final, redirect URL, we loose our source of income.Crazy

Please consider making a upgrade available that will make the Links database change optional, and separate from the ability to cache the final page, which is excellent.

Regards and thanks for the hard work on making this upgrade.Smile
Quote Reply
Re: [webslicer] [Update] Cache_Page 1.1 available In reply to
Quote:
Please consider making a upgrade available that will make the Links database change optional, and separate from the ability to cache the final page, which is excellent.


Sounds reasonable. I will separate this into two options. One is whether or not to follow redirects to cache pages, the other is whether or not to fix 301 url in Links table.

Long
Quote Reply
Re: [long327] [Update] Cache_Page 1.1 available In reply to
The plugin has been updated with two options added to deal with redirects. One is the option whether or not to follow redirects and cache redirected pages, the other is whether or not to fix the URL column in links table once a redirected page is cached.

The plugin has been uploaded to the download area.

Enjoy!

Long
Quote Reply
Re: [long327] [Update] Cache_Page 1.1 available In reply to
Fantastic!!
Quote Reply
Re: [webslicer] [Update] Cache_Page 1.1 available In reply to
In Reply To:
Fantastic!!


Thanks.Blush

Long
Quote Reply
Re: [long327] [Update] Cache_Page 1.2 available In reply to
Hi All,

A new version of Cache_Page plugin is available for downloading.

What's new in version 1.2:

1. Added "Build" function. Now you can build static HTML pages from cached pages in your database. Two types of methods are available: "Build All" and "Build Changed". "Build Changed" will only build updated cached pages since last build.

2. Some bugs fixes.

How to upgrade:

First uninstall previous version of Cache_Page plugin. You can keep your cached page table if you want. Then install the new version. During installation, you can provide a folder name other than the defaul one in which to store static cached pages. The default folder is "Cached_Pages" under your root path.

If you have built static cached pages, a tag named "cached_page_url" is available. You can add this line in your links.html file: <%if cached_page eq 'yes'%><a href=<%cached_page_url%> target="_blank">View Cached Page</A><%endif%>.

If you use dynamic link page, because the script "page.cgi" will substitute some URL in a template. If the tag "cached_page_url" is used, then that URL will be changed to something else. In this case, a hard coded URL plus the tag named "cached_page_name" should be used like this <%if cached_page eq 'yes'%><a href="http://your_links_root_url/your_cached_pages_folder_name/<%cached_page_name%> target="_blank">View Cached Page</A><%endif%>.

Enjoy!

Long

Last edited by:

long327: May 20, 2003, 12:07 PM
Quote Reply
Re: [long327] [Update] Cache_Page 1.2 available In reply to
Is there a demo of this plugin anywhere???

</not a clue>
Quote Reply
Re: [Dinky] [Update] Cache_Page 1.2 available In reply to
Hi Dinky,

There is no admin demo available. Check your message for a site using this plugin.

Long