Ticket #226 (new enhancement)
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
Change History
Changed 7 years ago by MikeLittle
-
attachment
wp-cache-phase2.php.diff
added
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

patch to wp-cache-phase2