Ticket #226 (new enhancement)

Opened 7 years ago

Last modified 7 years ago

Patch to allow dynamic include of non local content.

Reported by: MikeLittle Owned by: gallir
Priority: lowest Component: wp-cache
Severity: normal Keywords:
Cc:

Description

I've created a patch (against revision 2682) to allow wp-cache to dynamically include non-local content. Basically it's another special tag to include a file but without prepending ABSPATH.

I've used 'pclude' (for plain include) as the tag, but I'm not married to that :-)

I guess I'll have to attach the patch in the next step

Attachments

wp-cache-phase2.php.diff Download (1.2 KB) - added by MikeLittle 7 years ago.
patch to wp-cache-phase2
README.txt.diff Download (1.3 KB) - added by MikeLittle 7 years ago.
Patch to update documentation

Change History

Changed 7 years ago by MikeLittle

patch to wp-cache-phase2

Changed 7 years ago by MikeLittle

Patch to update documentation

comment:1 Changed 7 years ago by gallir

  • Priority changed from normal to lowest

I think this is useful to very few people and it has a problem: why would you want a very fast cache if most of the time is spent connecting to another server?

If this is useful for more people, it _must_ at least keep a local cache. Otherwise, if your server is under load --as wp-cache is designed for-- you are going to overload an external server.

Even if wp-cache does not implement it, it is very easy --and more flexible-- to do it from an external php file with "mclude".

comment:2 Changed 7 years ago by MikeLittle

In my case, I wanted to connect to a subdomain on my own server, but the real benefit is to be able to include a file which doesn't sit within your WordPress ABSPATH. For example, you might want include dynamic content from your forum or from your gallery.

Mike

Note: See TracTickets for help on using tickets.